c++ - How properly connect libcurl to Visual Studio 2012? -


i want use in project libcurl library. here steps did connect libcurl library msvs 2012: 1. downloaded package official site libcurl-7.19.3-win32-ssl-msvc.zip 2. dll , lib files placed in c:\program files\microsoft visual studio 11.0\vc\lib 3. curl folder header files copied c:\program files\microsoft visual studio 11.0\vc\include 4. in vs 2012 in project's options added curllib.lib string 5. dll files copied project's debug folder

but when run example:

int main(void) { curl *curl;   curlcode res;    curl = curl_easy_init();   if(curl) {     curl_easy_setopt(curl, curlopt_url, "https://api.copy.com/oauth/request");     /* example.com redirected, tell libcurl follow redirection */      curl_easy_setopt(curl, curlopt_followlocation, 1l);      /* perform request, res return code */      res = curl_easy_perform(curl);     /* check errors */      if(res != curle_ok)       fprintf(stderr, "curl_easy_perform() failed: %s\n",               curl_easy_strerror(res));      /* cleanup */      curl_easy_cleanup(curl);   } return 0 } 

i error there missing libsasl.dll. libsasl.dll , should if there no such file in package.

well, found lot of different versions of libsasl.dll outdated. on forum found advice download openldap windows , use libsasl.dll program folder. , works!


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -