cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Newbie Darwin Question

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 15 Aug 2006 10:32:57 +0200 (CEST)

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.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-08-15