hi,
I have installed libcurl3 in my ubuntu. But when i try to run the program using the command
g++ sample.C -l curl
It gives an error saying "curltest.c:2:23: fatal error: curl/curl.h: No such file or directory
compilation terminated."
i'd be glad if someone could help me out with this problem!
Thanks in advance
PS:
The code i tried to run is..
Code:
#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, "http://example.com");
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
return 0;
}