This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Multiple GCC versions and libstdc++.so


So, I've built GCC 4.5.1 on my SLES10 server and proceeded to build my new
tool chains.  Things seemed to be going OK until one program wouldn't run.  It
complained about needing libstdc++.so with GLIBCXX_3.4.9 or some other version.
I searched the libraries in my new tool chain and a number of them refer to
specific GLIBCXX versions that are all newer than the one that my system
libstdc++.so provides.  The only way I can get these programs and libraries to
work is to modify my LD_LIBRARY_PATH to point to the GCC 4.5.1 directory that
contains the newer libstc++.so.  I have 2 questions.  First of all, why is it
that only some libraries have this requirement.  Secondly, what is the correct
way of handling this ?  I'm assuming that we don't want to mix different
versions of this library.  I'm guessing that I should do 1 of the following:

1)  Install the newer libstdc++.so in the system directory and have all
packages use this version

2)  Globally set the LD_LIBRARY_PATH for this entire tool chain so that they
all pick up the library from the GCC 4.5.1 directory.

Thanks in advance.

   Kris


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