• 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
Re: Adding external library in cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding external library in cocoa app


  • Subject: Re: Adding external library in cocoa app
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 23 Sep 2008 13:09:46 -0600


On Sep 23, 2008, at 12:56 PM, Harsh Trivedi wrote:

can you suggest a method or a
reference document for adding external libraries to a leopard based cocoa
app.

Just drag them into the project from the Finder, or use the "add existing frameworks" contextual menu item.


The reason I specifically mention leopard is because leopard doesnot
allow adding static libraries


The linker does link in static libraries, but it prefers dynamic libraries over static ones, and will always link to a dynamic library if one exists with the same name as the desired static one. Since there's no way to change this behavior, the only workaround is to add an absolute path to the static library as a linker flag in the "other linker flags" build settings.

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


  • Follow-Ups:
    • Re: Adding external library in cocoa app
      • From: Scott Ribe <email@hidden>
References: 
 >Adding external library in cocoa app (From: "Harsh Trivedi" <email@hidden>)
 >Re: Adding external library in cocoa app (From: Matt Long <email@hidden>)
 >Re: Adding external library in cocoa app (From: "Harsh Trivedi" <email@hidden>)

  • Prev by Date: Re: Adding external library in cocoa app
  • Next by Date: Creating alias programatically
  • Previous by thread: Re: Adding external library in cocoa app
  • Next by thread: Re: Adding external library in cocoa app
  • Index(es):
    • Date
    • Thread