Re: Adding external library in cocoa app
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