curl library errors

I am getting the following errors when i try to include easy.c :
easy.c:318: error: expected identifier or '(' before '__extension__'
easy.c:318: error: expected identifier or '(' before ')' token
easy.c:481: error: expected identifier or '(' before '__extension__'
easy.c:481: error: expected identifier or '(' before ')' token

> i try to include easy.c

Why are you trying to include easy.c? That is a libcurl implementation file.

In your program which uses the curl easy interface, #include <curl/curl.h>
See the example here: http://curl.haxx.se/libcurl/c/simple.html

I couldn't find curl_easy_init in curl.h that's why i included easy.c. I tried including curl.h as well,but that too gave many errors. I need to perform an ldap search and am unable to find any sample code that uses curl with ldap.
Kindly help!
> I couldn't find curl_easy_init in curl.h

Then you don't have curl/curl.h from libcurl.

Use the download wizard to get the right package: http://curl.haxx.se/dlwiz/?type=lib
Topic archived. No new replies allowed.