This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ assumes libstdc++ in library path?
- From: geos at epost dot de (Georg Schwarz)
- To: gcc at gcc dot gnu dot org
- Date: Mon, 31 May 2004 18:29:47 +0200
- Subject: g++ assumes libstdc++ in library path?
- Organization: private
It looks like gcc/g++ assume that the path where libstdc++ is installed,
i.e. typically PREFIX/lib, is in the runtime library path. If that is
not the case, launching an executable compiled with gcc/g++ fails with
rld: Fatal Error: cannot map soname
'libstdc++.so.7' using any of the filenames [...]
This is gcc 3.4.0 on IRIX 5.3 using the native SGI ld.
Can gcc be compiled to link executables with an appropriate -rpath
option, when necessary, i.e. when libstdc++ is needed?
--
Georg Schwarz http://home.pages.de/~schwarz/
geos@epost.de +49 177 8811442