curl-library
Re: Newbie Darwin Question
Date: Tue, 15 Aug 2006 08:59:11 -0500
OK, maybe I didn't make my "Newbieness" clear enough.
I am new to C programming. A tip or example of linking and variable
declaration would be very helpful.
On Aug 15, 2006, at 3:32 AM, Daniel Stenberg wrote:
> On Tue, 15 Aug 2006, Dean Shavit wrote:
>
>> I'm planning on writing a command-line tool for Darwin that uses
>> libcurl and I am having a little trouble getting the "handle" from
>> the curl_easy_init() function.
>
>> Building this in Xcode results in the following error:
>>
>> ZeroLink: unknown symbol '_curl_easy_init'
>
> Then you didn't link with libcurl.
>
>> main.c:10: error: 'handle' undeclared (first use in this function)
>
>> CURL *curl_easy_init();
>> CURLcode res;
>> handle = curl_easy_init();
>
> You need to declare variables before you can use them.
Received on 2006-08-15