Re: gcc 4 plus virtual functions plus strip equals problems
Re: gcc 4 plus virtual functions plus strip equals problems
- Subject: Re: gcc 4 plus virtual functions plus strip equals problems
- From: Bob Clark <email@hidden>
- Date: Fri, 13 Jan 2006 18:54:04 -0800
My build system uses Xcode 2.2 projects to construct a bundle then, as a
shell script post-processing step, does a "strip -u -s Foo.exp myBundle".
This works great with gcc3, but when I use gcc4 the strip command starts
erroring out like this:
strip: symbols referenced by relocation entries that can't be stripped in:
myBundle (for architecture ppc)
__MangledBar
__MangledBat
strip: symbols reference by relocation entries that can't be stripped in:
MyBundle (for architecture i386)
__MangledBar
__MangledBat
What adds to the oddness is that it seems that the symbols that are
causing the problems either are pure virtual functions (or classes) or are
derived from pure virtual functions (or classes). I honestly don't know
what to make of this -- it feels like a red herring to be honest.
I've tried tinkering with the "Symbols Hidden by Default" checkbox
(GCC_SYMBOLS_PRIVATE_EXTERN) to no avail -- that was the closest
suggestion I found when researching this problem.
Does anyone know of a magic incantation to solve my problem? Or failing
that, some web site that explains a little more about what's happening here?
Just to close the loop for Googlers Of The Future...
Turns out that the solution was indeed GCC_SYMBOLS_PRIVATE_EXTERN -- it
needs to be "NO". Plus I needed to add my export file to the
EXPORTED_SYMBOLS_FILE key.
(It's odd that gcc3/Xcode 1.5 builds did not require the export file
explicitly named.)
--Bob
_______________________________________________
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