This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Shared library annoyance with gcc-3_0-branch


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]