From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Umapathy S" To: "David Korn" Cc: Subject: Re: help :: cant run due to libstdc++ Date: Thu, 01 Mar 2001 20:39:00 -0000 Message-id: <003801c0a309$f7aa7330$af64c8c8@blr.thbs.com> References: <718D38CAB6E0D011B2C90060970C28A564271D@EXCHANGESERVER> X-SW-Source: 2001-03/msg00008.html 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" To: "'Umapathy S'" ; "Anthony Lee" Cc: 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 > ********************************************************************** >