Re: Is this bug in g++ /gcc-3.4.0 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux