How do you use cURL ?

How do you use cURL to open an internet file? Where can I find the source code? the sites I found were "Not Found"...

Here is the main.cpp from an example that I found online...:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <curl/curl.h>

int main(void)
{
  CURL *curl;
  CURLcode res;

  curl = curl_easy_init();
  if(curl) {
    curl_easy_setopt(curl, CURLOPT_URL, "curl.haxx.se");
    res = curl_easy_perform(curl);

    /* always cleanup */ 
    curl_easy_cleanup(curl);
  }
  return 0;
}


The error I get is :

ZeroLink: unknown symbol '_curl_easy_init'

Web has exited due to signal 6 (SIGABRT).

?

Any help woud be appreciated...I'm using a Mac OS X 10.3.9
Last edited on
Here is some example code that I posted recently that might be of help to you:

http://cplusplus.com/forum/unices/45878/#msg249287
Topic archived. No new replies allowed.