This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: How do I select a version of libstdc+ to link against?


On 09/21/2011 06:15 PM, David Aldrich wrote:
Hi

I am running Ubuntu 10.04, which has g++ 4.4 installed by default. I want to run g++ 4.1.3 so I installed 4.1.3 and set is as the default using update-alternatives. However, I suspect that although I am compiling with 4.1.3, I am actually linking to libstdc+ 4.4.
Note that your issues have very little to do with the *development* of libstdc++. Actually, I would say have little to do also with the *use* of GCC as GCC, these are generic Unix / Linux questions, thus I'm not even sure about recommending gcc-help instead.
How can I determine which version of libstdc+ I am linking against?
ldd on the executable, for example.
How can I select which version of libstdc+ to link against?
LD_LIBRARY_PATH, for example.

Paolo.


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