This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
a problem about "g++"
- To: gcc at gcc dot gnu dot org
- Subject: a problem about "g++"
- From: Bo Xu <bo at cybershop dot ca>
- Date: Mon, 13 Mar 2000 18:00:35 -0500
Hi,
1. I download gcc-2.95.2 from http://sunfreeware.com, and install it.
when I use "gcc" to compile a C file, it works well.
2. but when I use "g++ hello.cc -o hello" , "hello" file has been made.
but when I "excute it", I see the following:
ld.so.1: ./hello: fatal: libstdc++.so.2.10.0: open failed: No such file
or directory
Killed
3. I find that the file "libstdc++.so.2.10.0" is in /usr/local/lib
4. the file "hello.cc" is:
#include <iostream.h>
int main(){
cout << "hello!\n";
return 0;
}
So could anybody tell me how I can set my "enviroment" to run "hello"
? I guess it is a simple question, but because this is the first time I
use "g++", so I don't know :-).
Bo
Ottawa
Mar.13,2000