• 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: Linking with libraries in SDKs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking with libraries in SDKs


  • Subject: Re: Linking with libraries in SDKs
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 8 Jun 2005 17:18:28 -0700

On Jun 8, 2005, at 11:06 AM, Tim Conkling wrote:

As stated previously, I'm using libxml and zlib in my program. Both of these libraries are included with the Mac OS. Should I be linking with the libraries in /usr/lib, or the libraries in the directory of the Mac OS SDK I'm using?


If you add files in /usr/lib to your project, and then set your project to use an SDK, Xcode will use the versions in the SDK automatically.

Is it possible to have Xcode switch which library it links to based on the SDK I'm currently developing with (i.e., if I switched my SDK to 10.3, is it possible to have Xcode automatically know to link with the libxml.dylib and libz.dylib files in the 10.3 SDK directory)?


That happens automatically.

A related question: to allow Xcode to find the appropriate headers for libxml and libz, should I add /usr/include and /usr/include/libxml2 to my Header Search Paths, or should I add some SDK-relative paths instead?


Just add the ones from /usr/lib, and Xcode will pick up the corresponding ones from the SDK in use at build time.

Chris

 _______________________________________________
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: Linking with libraries in SDKs
      • From: Wade Williams <email@hidden>
    • Re: Linking with libraries in SDKs
      • From: Tim Conkling <email@hidden>
References: 
 >Linking with libraries in SDKs (From: Tim Conkling <email@hidden>)

  • Prev by Date: Re: Build Styles vs Build Configurations
  • Next by Date: Re: Linking with static sqlite 3 library
  • Previous by thread: Linking with libraries in SDKs
  • Next by thread: Re: Linking with libraries in SDKs
  • Index(es):
    • Date
    • Thread