[Bug libstdc++/21405] Can't give symbol versions to templates
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 11 14:01:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21405
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #20 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-11 14:00:52 UTC ---
For DSOs you need to avoid re-exporting libstdc++ symbols without versions.
Use a linker script to assign versions and/or restrict what you export
via visibility attributes and/or use -fvisbility-default=hidden.
To pick up properly versioned symbols for UNDEFs in DSOs you have to
link the DSO against the proper libstdc++.
This is not a bug (but easy to get wrong).
More information about the Gcc-bugs
mailing list