Linking/symbol problem
Linking/symbol problem
- Subject: Linking/symbol problem
- From: Jo Meder <email@hidden>
- Date: Sun, 4 Dec 2005 16:47:47 +1300
Hi,
I'm using Xcode 2.2, Carbon/C++ and building universal binaries. I
have a framework which links to a static library. I have an
application which links to the framework. Like so :
static lib -> framework -> app
My problem is that the application cannot find a symbol which is in
the static lib. If I run nm on the static lib I can see the symbol.
If I run nm on the framework I can see symbols from the static lib
which ( I'm guessing this is the reason ) the framework is using, but
not the symbol I want to be able to call from the app.
Does anyone have any idea what might be going on ? As far as I can
tell ( Xcode settings are pretty convoluted ) I have none of the
stripping options turned on in any of the projects.
All this worked ok with Xcode 2.0, but I can't remember what I did
( if anything ) to get it working.
I've tried to generate a link map from the framework to see if the
unused symbols from the static lib are being stripped, using the -M
option in the Other Linker Flags section. I found that if I have that
on when compiling for ppc and i386 then lipo complains and the
framework doesn't link. If I switch the framework to ppc only then it
links, but I can't see where the link map is being written out. Does
anyone know what that file would be called and where it would found
in relation to the project ?
Thanks.
Regards,
Jo
--
Jo Meder
Planetside Software
email@hidden
Terragen for Macintosh
Photorealistic landscapes on your Mac
<http://www.planetside.co.uk/terragen/mac/>
_______________________________________________
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