[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multiple libstdc++
From: |
Robert Heller |
Subject: |
Re: multiple libstdc++ |
Date: |
Thu, 01 Sep 2005 22:10:56 +0200 |
Wojtek Michalik <wojmichal@poczta.onet.pl>,
In a message on Thu, 01 Sep 2005 19:28:03 +0200, wrote :
WM> On Thu, 01 Sep 2005 13:12:36 +0200, Ralf Fassel wrote:
WM>
WM> > * Wojtek Michalik <wojmichal@poczta.onet.pl>
WM> > | I have multiple vessions of libstdc++ installed 3.3 and 3.4
WM> > | My programs using this librarry are linked against the first one by
WM> > | default. I want to change this behavior.
WM> >
WM> > Usually /usr/lib/libstdc++.so (which is used at compile time) is a
WM> > symbolic link to the library with version number. This link
WM> > determines which version is required at run time.
WM> That is no problem. I know how to link with multiple versions of other
WM> libraries but this one is somehow special. Apart from linking to
WM> libstdc++.so.5 I can link to libstdc++.6. Fine. I can also force g++ to
WM> use particular set of headers. I am not sure if it is going to be enough.
If both libraries were built with the *same* (major?) version of g++ it
should be fine. If they were built with *different* versions of g++,
you may have name mangling issues.
WM>
WM> > Also check your compiler/linker docs whether it supports specifying a
WM> > library version.
WM> >
WM> > HTH
WM> > R'
WM>
WM>
\/
Robert Heller ||InterNet: heller@cs.umass.edu
http://vis-www.cs.umass.edu/~heller || heller@deepsoft.com
http://www.deepsoft.com /\FidoNet: 1:321/153