Re: [Xcode-users] Linking static curl lib
Re: [Xcode-users] Linking static curl lib
- Subject: Re: [Xcode-users] Linking static curl lib
- From: David Cohn <email@hidden>
- Date: Tue, 25 Nov 2008 17:56:30 -0800
Chris,
OK, I think I'm barking up the wrong tree... I believe my libcurl
build isn't right for some reason...
My apologies,
--Dave
On Nov 25, 2008, at 4:23 PM, David Cohn wrote:
Chirs,
Thanks for your help... something must be wrong here:
Other Linker Flags: -l/My/Full/Path/libcurl.a
fails: /usr/bin/ld: can't locate file for: -l/My/Full/Path/
libcurl.a
Other Linker Flags: -L/My/Full/Path -lcurl -lz
links, but again I'm getting the older version of libcurl.
(I'm using Xcode 2.4.1, and "Other Linker Flags" is shown as
OTHER_LDFLAGS. I'm assuming that part is right)
Thanks,
--Dave
On Nov 25, 2008, at 3:23 PM, Chris Espinosa wrote:
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