Re: [Xcode-users] Linking static curl lib
Re: [Xcode-users] Linking static curl lib
- Subject: Re: [Xcode-users] Linking static curl lib
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 26 Nov 2008 10:24:18 +0100
Le 26 nov. 08 à 05:45, Nick Zitzmann a écrit :
On Nov 25, 2008, at 9:28 PM, David Cohn wrote:
Yes, that works... and the build does too... I guess "-lcurl"
somehow specifies that the system paths are searched before "-L"
paths?
No; the problem you've encountered is the linker always prefers
dynamic libraries over static ones when using the "-l" option, and
there is no way to change this behavior. There are, however,
workarounds.
Yes, and my favorite workaround is to simply rename the static library
to avoid conflict with dynamic one. libscurl.a for example and then
use -lscurl or simply add it to your project, and let Xcode deal with
the flags.
_______________________________________________
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