Re: Linking CFBundle with static libraries
Re: Linking CFBundle with static libraries
- Subject: Re: Linking CFBundle with static libraries
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 3 Dec 2008 22:33:40 -0700
On Dec 3, 2008, at 7:33 AM, frank wrote:
The reason I have elected to use CFBundle is that I require the
ability to load and unload plugins and as far as I have seen, this is
not possible with NSBundle. See:
It doesn't matter; CFBundle and NSBundle are two sides of a coin. They
aren't toll-free bridged, however.
And C and C++ bundles can be unloaded. In Tiger and earlier, Objective-
C bundles couldn't be unloaded in any way whatsoever. I'm not sure if
this was addressed in Leopard.
ld: absolute addressing (perhaps -mdynamic-no-pic) used in ___tcf_0
from /Users/botmanx/Documents/src/trunk/Build/Debug/libboost-
filesystem.a(error_code.o) not allowed in slidable image. Use '-
read_only_relocs suppress' to enable text relocs
On seeing this, I added the '-read_only_relocs suppress' CFlag to my
build options as the compiler suggested but the error remains.
Does anyone know how I might get around this problem?
Are you sure the static library was built correctly? Libraries of any
sort cannot contain position-independent code, and that linker error
suggests that the static library was compiled with the -mdynamic-no-
pic option. Do you have the source code for the static library?
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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