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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to