Our docs about --enable/--disable-visibility

Paolo Carlini paolo.carlini@oracle.com
Mon Oct 31 10:31:00 GMT 2011


Hi,
> On 29 Oct, 2011, at 2:26 PM, Jonathan Wakely wrote:
>
>> Yes, that's my interpretation: users can use -fvisibility=hidden
>> without getting segfaults because they've hidden parts of libstdc++
>> that must not be hidden.
>>
> Can somebody provide me an example of a code that segfaults if "namespace std" is not default visible? I never had problems, neither with std nor with other libraries such as boost.
Well, I guess it depends a lot on which parts of the library are you 
using and how you are linking together "stuff". For sure you have a 
point in that for many years v3 didn't have the mechanism available and 
definitely was already largely usable, neither the decorations existed 
in the HP/SGI STL headers which people used to just drop-in in their 
systems circa ~1990s (thus completing large interesting C++ only 
projects). All in all, anyway, I think it's uncontroversial that the 
current *default* is Ok for the large majority of the users.

Paolo.



More information about the Libstdc++ mailing list