error loading shared libraries

lrtaylor@micron.com lrtaylor@micron.com
Wed Feb 25 05:08:00 GMT 2004


Did you run "ldconfig -v" after installing GCC?  If not, then try that
and try running your program again.

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Robert Wimmer
Sent: Tuesday, February 24, 2004 2:51 PM
To: gcc-help@gcc.gnu.org
Subject: error loading shared libraries

i installed gcc version 3.2.2. to day and now i have problems compiling
with 
g++. if i tru to run a simple hello world program the following error
occurs

###
sepp@linux:~/c-devel/test> ./a.out
./a.out: error while loading shared libraries: libstdc++.so.5: cannot
open 
shared object file: No such file or directory

the old g++ version worked. i noticed that the old .so  files had
another 
path

### old
/usr/lib/libstdc++.so.2.9

### new
/usr/local/lib/libstdc++.so.5

but i checked the path in etc/ld.so.conf and usr/local/lib is also
included

can someone help me ?

thanx sepp

_________________________________________________________________
Say "good-bye" to spam, viruses and pop-ups with MSN Premium -- free
trial 
offer! http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/



More information about the Gcc-help mailing list