Re: Adding external library in cocoa app

2008-09-25 Thread Nick Zitzmann
On Sep 25, 2008, at 4:19 PM, Sherm Pendley wrote: Or, if it's a project that uses autoconf, just './configure --disable-dynamic' - why waste time building dynamic libraries if you're just going to delete them? Because some autoconf projects (such as liboil) depend on getting a list of s

Re: Adding external library in cocoa app

2008-09-25 Thread Sherm Pendley
On Thu, Sep 25, 2008 at 5:19 PM, Scott Ribe <[EMAIL PROTECTED]>wrote: > Or, for libs you're building yourself that are not part of the standard > system install, delete the dynamic libs ;-) Or, if it's a project that uses autoconf, just './configure --disable-dynamic' - why waste time building d

Re: Adding external library in cocoa app

2008-09-25 Thread Scott Ribe
>> 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 p

Re: Adding external library in cocoa app

2008-09-25 Thread Scott Ribe
> 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 t

Re: Adding external library in cocoa app

2008-09-23 Thread Nick Zitzmann
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 spec

Re: Adding external library in cocoa app

2008-09-23 Thread Harsh Trivedi
Thanks for the reply Matt, can you suggest a method or a reference document for adding external libraries to a leopard based cocoa app. The reason I specifically mention leopard is because leopard doesnot allow adding static libraries -Harsh On Tue, Sep 23, 20

Re: Adding external library in cocoa app

2008-09-23 Thread Matt Long
If you compiled your libs using the normal linux/unix ./configure, make, make install routine, you likely don't have universal binaries. Can't be sure your issue without seeing your linker error messages, but this is a likely cause. -Matt On Sep 23, 2008, at 11:50 AM, Harsh Trivedi wrote

Adding external library in cocoa app

2008-09-23 Thread Harsh Trivedi
Hi, I am new to cocoa and objective c. I am trying to create an application which uses an external C library (exosip2 and libyahoo2). I have downloaded the source code compiled it using terminal and added it to my project. however I am having issues with it my application gives me a linking er