Re: Linking with libraries in SDKs
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