• 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: Linker can't find library in /usr/lib when SDKROOT is set
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Linker can't find library in /usr/lib when SDKROOT is set
      • From: Alastair Houghton <email@hidden>
References: 
 >Linker can't find library in /usr/lib when SDKROOT is set (From: Graham Westlake <email@hidden>)
 >Re: Linker can't find library in /usr/lib when SDKROOT is set (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Linker can't find library in /usr/lib when SDKROOT is set
  • Next by Date: Re: Linker can't find library in /usr/lib when SDKROOT is set
  • Previous by thread: Re: Linker can't find library in /usr/lib when SDKROOT is set
  • Next by thread: Re: Linker can't find library in /usr/lib when SDKROOT is set
  • Index(es):
    • Date
    • Thread