This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

a problem about "g++"


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]