This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Is this bug in g++ /gcc-3.4.0 ?
- From: Claudio Bley <bley at CS dot uni-magdeburg dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 10 May 2004 16:03:14 +0200
- Subject: Re: Is this bug in g++ /gcc-3.4.0 ?
- References: <1084150900.3452.12.camel@localhost.localdomain>
On Mon, May 10, 2004 at 10:01:41AM +0900, yuki shimada wrote:
> Hollo!
Konnichiha!
> 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.
No, this is not a compiler error - the compiler is already done; the
program was compiled successfully.
> (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 ?
No, it's not a bug. It means the dynamic linker/loader (ld.so) hasn't found the
dynamic library it was looking for (libstdc++.so.6).
Just read the friendly `ld.so' man page (man ld.so) also avialable online;
e.g. here:
http://unixhelp.ed.ac.uk/CGI/man-cgi?ld.so+8
in order to set it up that it can find the libraries where you installed them.
--
Claudio