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 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!