cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Symbols not found error in Xcode

From: Daniel Johnson <daniel.johnson31_at_gmail.com>
Date: Wed, 3 Jun 2009 06:45:55 -0400

On Jun 3, 2009, at 3:14 AM, Michael Wood wrote:

> On Wed, Jun 3, 2009 at 8:42 AM, Kushan Thakkar <kthakk4_at_gmail.com>
> wrote:
> [...]
>> When I run this code, I get the following four errors:
>>
>> "_curl_easy_perform", referenced from:
>> _main in main.o
>> "_curl_easy_setopt", referenced from:
>> _main in main.o
>> "_curl_easy_cleanup", referenced from:
>> _main in main.o
>> "_curl_easy_init", referenced from:
>> _main in main.o
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>
> Xcode doesn't know what library to link with. You will need to tell
> it to link with libcurl. Not sure exactly how you do that, though.

In Xcode 3, select the target and Get Info... on it. In the General
tab there is a pane named Linked Libraries. Either click the "+" below
the pane and navigate to the libcurl you want to use, or drag the
library in from the Finder.

Daniel

  • application/pkcs7-signature attachment: smime.p7s
Received on 2009-06-03