a problem about "g++"
Bo Xu
bo@cybershop.ca
Mon Mar 13 15:02:00 GMT 2000
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
More information about the Gcc
mailing list