• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Symbol Visibility in C++ App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Symbol Visibility in C++ App
      • From: Michael Randell <email@hidden>
References: 
 >Symbol Visibility in C++ App (From: Michael Randell <email@hidden>)

  • Prev by Date: Re: Guard Malloc message
  • Next by Date: Re: SVN Conflict Resolution from SCM GUI?
  • Previous by thread: Symbol Visibility in C++ App
  • Next by thread: Re: Symbol Visibility in C++ App
  • Index(es):
    • Date
    • Thread