Re: linking to dylibs
Re: linking to dylibs
- Subject: Re: linking to dylibs
- From: Christiaan Hofman <email@hidden>
- Date: Mon, 30 Jan 2012 16:51:00 +0100
On Jan 30, 2012, at 15:07, Koen van der Drift wrote:
> My app uses libxml2 to read XML files (duh), and I've found a couple
> of tutorials describing how to link to the libxml2 library from Xcode.
> Basically I've come accross two ways to do this:
>
> 1. add -lxml2 to the 'other linker flags'
> 2. add the libxml2.dylib from a popup menu of available libraries in the SDK
>
> The second one links (I think) to whatever is in the /Developer
> folder, not to what is in OSX, so my preference goes to option 1 since
> the end user probably won't have the Dev folder on her Mac. Another
> vote for 1. would be that you are using the version that is in the OS,
> so probably better tested and stable.
>
> In the end they both work, but most tutorials suggest option2. Is
> there a any reason why 2. is preferred over 1. ?
>
> Thanks,
>
> - Koen.
You should read about cross development and the role of SDKs (you may search the dos for SDK or something). You apparently don't understand what an SDK does, and why you'd use it, as the reasons you give for option 1 are completely invalid and incorrect. So the answer is a definite 2.
Christiaan
_______________________________________________
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