This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Restricting symbol binding within shared object


Arindam <arindam.mukerjee@gmail.com> writes:

>> With a newer version of gcc you can use visibility attributes.  That
>> is probably your best approach here.
>>
>> http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/Function-Attributes.html#Function-Attributes
>>
>> search for
>>    visibility ("visibility_type")
>>
>
> Cool ... so this mimics the Windows __declspec(dllexport) kind of
> declarations. I know that newer versions of Sun Studio have
> essentially the same functionality (albeit with a less obnoxious
> syntax). I need to figure out if aCC on HP-UX has something similar
> too. Is this a new thing on ELF format?

It works for Mach-O (used on Mac OS) as well.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]