This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: help :: cant run due to libstdc++
- To: 'Umapathy S' <nsupathy at myrealbox dot com>, Anthony Lee <al012 at energex dot com dot au>
- Subject: RE: help :: cant run due to libstdc++
- From: David Korn <dkorn at pixelpower dot com>
- Date: Thu, 1 Mar 2001 15:42:38 -0000
- Cc: gcc-help at gcc dot gnu dot org
>-----Original Message-----
>From: Umapathy S [mailto:nsupathy@myrealbox.com]
>Sent: 01 March 2001 17:13
>I tried to link forcibly as
> /usr/local/bin/g++ -ohello hello.o
>-l/usr/local/lib/libstdc++.a.2.10.0
>
>I got the list of errors as follows
> ld: fatal: library -l/usr/local/lib/libstdc++.a.2.10.0: not found
>(!!!!but it is there and not corrupted)
> ld: fatal: File processing errors. No output written to hello
> collect2: ld returned 1 exit status
Check the file permissions for it: is it not readable by you perhaps?
>> ld.so.1:hello: fatal: libstdc++.so.2.10.0: open failed: No such
>> file or directory
This is an error message from the dynamic linker. Your copy of gcc has
a dynamic link library for libstdc++, and it is not the 'ld' linker that
is failing and complaining, but the 'ld.so' dynamic (run-time) linker.
Note that libstdc++.so.2.10.0 is not the same as libstdc++.a.2.10.0
Try using
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
to add /usr/local/lib to the places searched by the dynamic linker.
These are just suggestions: let us know if they work or not.
DaveK
--
All your base are belong to us!
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************