This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: risk of mixing libstdc++ versions in one executable
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