• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Linking CFBundle with static libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Linking CFBundle with static libraries
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Correct location to store application data.
  • Next by Date: self = [super init];
  • Previous by thread: Re: Correct location to store application data.
  • Next by thread: Re: Linking CFBundle with static libraries
  • Index(es):
    • Date
    • Thread