Weak Linking & using HiShape
Weak Linking & using HiShape
- Subject: Weak Linking & using HiShape
- From: Pierre Guilluy <email@hidden>
- Date: Tue, 02 Sep 2008 14:06:07 +0200
Hi there,
We're trying to compile our application so that it can run under 10.5 &
10.4 using weak linking (this is required for us other libraries). Our
software is based on wxWidget and so for the moment we're evaluating the
possibility of running the minimal sample from wxWidget using weak linking.
After recompiling the libraries and minimal example using
-isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.4
the example works fine under 10.5 but running it under a 10.4 system
comes with a dyld error
dyld: lazy symbol binding failed: Symbol not found: _HIShapeCreateWithRect
The strange thing was that using gdb, I could successfully put a
breakpoint in the 'missing' function and it would work everytime it's
called internally by another Framework but then fail when called from
the wxWidget libs. Finally I discovered that the error is coming not
because the symbol doesn't exist but because it's been moved from 10.4
to 10.5: Under 10.4 HIShape.h was part of Carbon, while now it's part of
ApplicationServices.
How can I do to solve a problem like this and have an application that
uses weak linking and works on both platforms ?
Thanks
Marc.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden