Hollo! I am Yuki Shimada. This time , I had installed gcc-3.4.0 into my RedHat9. And then,I had compiled "hello.cc" by using "g++". But cannot excute "./a.out". Compiler tells me a error. (Incase of "hellp.c" complied by "gcc", "./a.out" can excute well.) #1 error from g++ [yuki@localhost c++]$ g++ hello.cc [yuki@localhost c++]$ ./a.out ./a.out: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory [yuki@localhost c++]$ #2 my source code: see attachment of this mail. Is this a bug ? thank you. epsoft@xxxxxxxxxxxxxx Yuki Shimada
//hello.cc #include<iostream> using namespace std; int main(){ cout<<"Hello !"<<endl; return 0; }; // //[yuki@localhost c++]$ g++ hello.cc //[yuki@localhost c++]$ ./a.out // ./a.out: error while loading shared libraries: libstdc++.so.6: // cannot open shared object file: No such file or directory //[yuki@localhost c++]$ //