Re: [Xcode-users] Linking static curl lib
Re: [Xcode-users] Linking static curl lib
- Subject: Re: [Xcode-users] Linking static curl lib
- From: Chris Espinosa <email@hidden>
- Date: Tue, 25 Nov 2008 15:23:09 -0800
On Nov 25, 2008, at 3:07 PM, David Cohn wrote:
I'm having trouble linking a newer static libcurl than what's
installed on my system (7.16.3 installed, trying to link 7.18.1).
I've created the curl library in a relative directory, and played
around variously with setting Library Search Paths and actually
adding the .a files to the project (among other things). In
general, the application builds fine-- no error messages-- but the
version used is always 7.16.3, which tells me I'm getting the
dynamic lib at run-time rather than the .a file i statically link.
(ld shows -lcurl -lz in the build transcript)
Any ideas on how can I force the static library to link?
1) Remove the .a and the dylib from the project.
2) Add this to OTHER_LINKER_FLAGS: -l/my/full/absolute/path/to/libcurl.a
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