Shared library annoyance with gcc-3_0-branch

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Sat Feb 17 03:13:00 GMT 2001


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/



More information about the Gcc mailing list