Re: Linker can't find library in /usr/lib when SDKROOT is set
Re: Linker can't find library in /usr/lib when SDKROOT is set
- Subject: Re: Linker can't find library in /usr/lib when SDKROOT is set
- From: Ken Thomases <email@hidden>
- Date: Thu, 26 Nov 2009 23:59:19 -0600
On Nov 26, 2009, at 10:07 AM, Sherm Pendley wrote:
On Thu, Nov 26, 2009 at 10:54 AM, Graham Westlake
<email@hidden> wrote:
I'm trying to link my application against a third party library
that gets installed into /usr/lib.
There's your problem. Third-party libraries shouldn't install into
/usr - they should install to /usr/local.
Beyond that, it doesn't really make sense to compile against a third-
party library that you're not shipping with your app while at the same
time specifying an SDK. Specifying an SDK is for compatibility, but
linking against an external third-party library makes your program non-
portable. If you're going to tie your program to the specific
libraries you have installed on your development system, then it might
as well be tied to the specific libraries installed on your system
(in /usr/lib and /System/Library, rather than the stubs in an SDK).
Regards,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden