cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl_easy_strerror and curl_multi_strerror link error

From: Toby Peterson <toby_at_apple.com>
Date: Sat, 22 Jan 2005 18:45:48 -0500

On 21 Jan 2005, at 20.21, Tomas Franzén wrote:

> On Jan 22, 2005, at 1:50, Dan Fandrich wrote:
>> From what I understand, OS X includes curl, and an old one at that.
>> It's
>> not necessarily "impossible".
>
> You are so right. It indeed turned out that it linked with the old
> (7.10.x) version of libcurl included in OS X.
> I'm not sure why, since I included libcurl in XCode and specified the
> absolute path to it. However, after I deleted every file referring to
> libcurl from /usr/lib, it now automagically links with the new
> version. ... and curl_*_strerror works, of course!

Yikes! You deleted /usr/lib/libcurl* ? There are a number of software
programs which dynamically link against libcurl, so this isn't a very
good idea. The correct linker flags are '-L/path/to/curl -lcurl'.
Deleting arbitrary dylibs from your base system is *never* a good idea.

Regards,

- Toby
Received on 2005-01-23