This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Shared library annoyance with gcc-3_0-branch
- To: Joe Buck <jbuck at synopsys dot COM>
- Subject: Re: Shared library annoyance with gcc-3_0-branch
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Sat, 17 Feb 2001 12:11:59 +0100 (CET)
- cc: Brad Lucier <lucier at math dot purdue dot edu>, <gcc at gcc dot gnu dot org>
On Wed, 14 Feb 2001, Joe Buck wrote:
> For C++, it has always been this way, and this should not be surprising.
> Since the compiler does not "wire in" the path by default, shared libraries
> must be in the standard shared library search path, or in LD_LIBRARY_PATH
> for OSes that use that variable.
Well, there is a very noticable difference between 2.95 and 3.0:
nunki[42]:~% cat x.cc
main(int argc, char *argv[]) { }
nunki[43]:~% gcc2.95 x.cc ; a.out
nunki[44]:~% gccvs x.cc ; a.out
ld.so.1: a.out: fatal: libstdc++.so.3: open failed: No such file or directory
(This is a box w/o GCC in any default location nor LD_LIBRARY_PATH set.)
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/