• 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: Exporting Symbols...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exporting Symbols...


  • Subject: Re: Exporting Symbols...
  • From: Dave Thorup <email@hidden>
  • Date: Mon, 25 Jul 2005 15:55:11 -0400

On Jul 23, 2005, at 12:17 PM, Andreas Grosam wrote:

gcc exports all symbols by default.

For gcc-3.x you need an exported symbols file to limit exported symbols.

For gcc-4.x, you may change the default so that all symbols are private extern per default (== visibility = hidden). There are two Build settings which you need to enable:
Symbols Hidden by Default
Inline Functions Hidden

Thank you for the info on GCC 4.0, but like I said in my previous message I cannot use GCC 4.0. I need to use GCC 3.3 to support Mac OS X 10.2 and later. So any discussions of what I can do and how much easier it is with 4.0 are of no relevance to me.


Is there any way to limit exported symbols in GCC 3.3 besides using an exported symbols file? Or, if that's the only way to do it then is there an easy way to generate an exported symbols file?

If the only way to do it is manually then that will be a nightmare. There are thousands, if not tens of thousands of symbols that I'll have to sift through in half a dozen libraries in order to figure out what should and should not be exported. Let me also add that I'm not familiar with most of the libraries so I'll have to sift through header files in order to figure out what symbols should be exported.

I'd have figured that by now someone would have written a tool that takes a header file as input and outputs an exported symbols file using either the CodeWarrior method (#pragma export on/off) or the Windows method (__declspec(dllexport)). Does anyone know of such a utility?

I can't believe that there isn't an easier way to do it with GCC 3.3. Please someone tell me that there's an easier way.

Thanks!
_____________________________

Dave Thorup
Software Engineer
email@hidden

http://www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults / Preferences database.



_______________________________________________ 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
References: 
 >Exporting Symbols... (From: Dave Thorup <email@hidden>)
 >Re: Exporting Symbols... (From: Chris Espinosa <email@hidden>)
 >Re: Exporting Symbols... (From: Dave Thorup <email@hidden>)
 >Re: Exporting Symbols... (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: Project rebuilding unneccessarily
  • Next by Date: Re: How to see deprecated function warnings
  • Previous by thread: Re: Exporting Symbols...
  • Next by thread: Debug/Release framework linking in Xcode 2.1
  • Index(es):
    • Date
    • Thread