This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: How do I select a version of libstdc+ to link against?
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: David Aldrich <David dot Aldrich at EMEA dot NEC dot COM>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 21 Sep 2011 18:22:00 +0200
- Subject: Re: How do I select a version of libstdc+ to link against?
- References: <41302A7145AC054FA7A96CFD03835A0A054FDB@EX10MBX02.EU.NEC.COM>
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.