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 20:28:12 -0800
Thanks all,
Yes, that works... and the build does too... I guess "-lcurl"
somehow specifies that the system paths are searched before "-L" paths?
A subisidiary, doh! problem was that I'd tried "without the -l", but
I think I was moving too fast-- setting it for the project when the
target had a different setting (too much head scratching)...
Thanks again, donuts all around,
--Dave
On Nov 25, 2008, at 7:53 PM, Jason Stephenson wrote:
As Peter O'Gorman pointed out, you can link against the library
just by specifying its name, you don't need the -l
Try the following:
gcc -o curltest -I/Chiri/curl-7.18.1/include/curl -L/Chiri/contrib -
lz -lssl -lldap -lcrypto libcurl.a test.c
in the directory in your previous email. It should work.
Also, if you just put the full path to your self-built libcurl.a in
the OTHER LD FLAGS *WITHOUT THE -l* then you should link against
the proper binary from Xcode.
Jason
_______________________________________________
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