Multiple libstdc++ versions

Jonathan Wakely jwakely.gcc@gmail.com
Sat Jul 1 18:21:00 GMT 2017


On 1 July 2017 at 19:17,  <coypu@sdf.org> wrote:
> It is for the dynamic linking case.
> Previously I thought it's determined at link time (especially seeing
> 'ldd' return a full path), but now I see that it's determined as a
> filename and RPATH.

Strictly speaking, it's a SONAME and RPATH.

> so I suppose I need to always include an RPATH for the newer libstdc++.

Yes, that's one option. See
https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dynamic_or_shared.html#manual.intro.using.linkage.dynamic



More information about the Libstdc++ mailing list