libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoid exporting of internal symbols


From: David Carlos Manuelda
Subject: Re: Avoid exporting of internal symbols
Date: Tue, 05 Mar 2013 19:02:45 +0100
User-agent: KMail/4.10 (Linux/3.7.8-gentoo; KDE/4.10.0; x86_64; ; )

El Martes, 5 de marzo de 2013 18:53:37 Satz Klauer escribió:
> __attribute__ ((visibility ("default")))

And why not __attribute__ ((visibility ("hidden"))) for symbols you don't want
to be exported and __attribute__ ((visibility ("default"))) for the ones you
want to be exported?

You can also define macros to have code more readable, like they suggest in:
http://gcc.gnu.org/wiki/Visibility in the part "How to use the new C++
visibility support"

That's what I suggested in first comment, but I was on mobile connection and
could not look for you more info :)

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]