Re: Symbol Visibility in C++ App
Re: Symbol Visibility in C++ App
- Subject: Re: Symbol Visibility in C++ App
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 20 Jul 2010 19:31:24 +0200
Le 20 juil. 2010 à 18:36, Michael Randell a écrit :
> Hi All
>
> I'm trying to use pragmas to set symbol visibility in a Carbon C++ application - I'm trying to hide the symbols. I'm using otx to disassemble my Mach-O executable to test that the symbols have been hidden.
>
> Unfortunately the pragmas don't seem to work.
>
> I'm using XCode 3.2.2, Mac OS X 10.6.4, compiling with GCC 4.2.
>
> As a test I've tried using the 'C++ library' XCode template project and am still able to see the symbols for the function 'HelloWorldPriv', even though '#pragma GCC visibility push(hidden)' is used to hide the symbols for the class.
>
> Am I missing something?
What do you mean by "am still able to see the symbols" ?
Can you try to run the nm command in the Terminal to get the proper list of symbols with corresponding visibility and post the output here ?
-- Jean-Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden