Linking CFBundle with static libraries
Linking CFBundle with static libraries
- Subject: Linking CFBundle with static libraries
- From: frank <email@hidden>
- Date: Wed, 3 Dec 2008 14:33:32 +0000
Hi All,
I'm developing a CFBundle plugin and would like to link it with some
static libraries as I want only to distribute the CFBundle
without the need to also distribute shared libraries (.dylib).
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: http://developer.apple.com/documentation/CoreFoundation/Reference/CFBundleRef/Reference/reference.html
My plugin, written in C++, builds without any problems when I link to
dynamic libraries but when I try to link to static equivalents
I get the following error from gcc:
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?
Thanks in advance,
Frank
_______________________________________________
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