finding shared libs at runtime

Robert A Nesius rnesius@ichips.intel.com
Tue Sep 21 16:05:00 GMT 1999


I've built and installed gcc 2.95.1 for linux.  I didn't install 
it into /usr/local though.  When I use my build of gcc, at runtime
I get error messages indicating that the binary can't find it's 
shared lib.  The shared lib is in fact in my installed tree.  

mybox> ./a.out
a.out: error in loading shared libraries: libstdc++-libc6.1-2.so.3: cannot open shared object file: No such file or directory

How can I configure gcc to do something like a 
-B/scratch/gcc/2.95.1/lib by default?  

-Rob


-- 
#include <sig.h>
------------------------------------------------------------------
Robert Nesius             rnesius@ichips.intel.com    503.264.2830




More information about the Gcc-help mailing list