Re: Exporting Symbols...
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