How do I select a version of libstdc+ to link against?
Paolo Carlini
paolo.carlini@oracle.com
Wed Sep 21 16:23:00 GMT 2011
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.
More information about the Libstdc++
mailing list