This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: help :: cant run due to libstdc++


Thanks David, it works
I followed both of your suggestions to make it work

Previously, I didnt care about the permissions for libstdc++.so.2.10.0,
because I installed the package as root (super user, I suspect I cant
install, if I am not a root).  The permissions for that file are -r-xr-xr-x.
So I should be able to execute "hello" in my own login, but I cant.  During
run time, when I am invoking "hello" it says "open failed: No such file or
directory".  For inadequate permissions it should have said "Permission
denied". It is not identifying the directory.

I logined as root and try executing the same file, it executed.

I already set the Library path for the linker, so that was not a  problem

May be I am missing something important

cheers
Umapathy S


----- Original Message -----
From: "David Korn" <dkorn@pixelpower.com>
To: "'Umapathy S'" <nsupathy@myrealbox.com>; "Anthony Lee"
<al012@energex.com.au>
Cc: <gcc-help@gcc.gnu.org>
Sent: Thursday, March 01, 2001 3:42 PM
Subject: RE: help :: cant run due to libstdc++


>
> >-----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
> **********************************************************************
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]