This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Is this bug in g++ /gcc-3.4.0 ?
- From: yuki shimada <epsoft at mint dot ocn dot ne dot jp>
- To: gcc-help at gcc dot gnu dot org
- Date: 10 May 2004 10:01:41 +0900
- Subject: Is this bug in g++ /gcc-3.4.0 ?
- Organization:
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@mint.ocn.ne.jp
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++]$
//