risk of mixing libstdc++ versions in one executable

Ian Lance Taylor iant@google.com
Tue Oct 14 14:24:00 GMT 2008


jhfrontz <jeff.frontz@gmail.com> writes:

> Ian Lance Taylor-3 wrote:
>> 
>> 
>> You could confirm it by creating finding a function which your library
>> refers to and which should be found in libstdc++.so.5.  Define a
>> version of that function in your main executable, and see which
>> version is called.
>> 
>> 
>
> Hmm, I'm not sure how to see which version is called-- is there a "version"
> function in libstdc++ (or some other function that is in the older one but
> not the newer one)?

You can see which version of the library is used by running readelf -d
and looking at the DT_NEEDED tags.  I don't know if there is a version
function in libstdc++.

Ian



More information about the Libstdc++ mailing list