Ok finally I got it :-D :-D
First of all thanks a lot guys, you helped me a lot.
I will write the things I did, maybe this is easy for most of you, but could be helpfull for someone like me :-)
Added to wrote above:
- As you are well saying, I built the release folders, and I was trying to run in debug mode. I changed to release mode in Visual Studio, and added too the include/ and lib/ path in properties as same as i did before(take care with this. Project options changes between debug and release mode).
- I added too in properties -> Linker -> Additional dependencies:
- I copied into my project folder the file "libcurl.dll" (from the bin folder, the other one than include/ and bin/)
- Finally take care to select in Visual studio the same bit size (32 bits / 64 bits) than the version from curl that you downloaded.
This blog answer was helpfull for me:
stackoverflow.com/questions/30288415/curl-with-visual-studio-2013
And the basic code that I'm executing is:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#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://www.google.co.uk/");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
getchar();
return 0;
}
|