cURL / Mailing Lists / curl-library / Single Mail


How include Curl Library on Eclipse Project

From: Demetrio Car <>
Date: Wed, 31 Aug 2011 16:57:39 -0300

I have curl installed in my linux Ubuntu. I tested it from terminal and it
is ok. Now I want to include in my Eclipse project. I just wrote
/usr/local/curl-7.21.7/lib in GCC C++ Linker under Library Search Path (-L).
What else should I do? I am getting the message "undefined reference to
`curl_easy_init'" to teste the below code.

int main(void)
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "");
res = curl_easy_perform(curl);
/* always cleanup */
return 0;

List admin:
Received on 2011-08-31