I'm trying to get this sample code working, but I keep getting errors.
I'm using Qt, so I've added the curl.h file and included it, and then pasted the code as it is in the sample (except for the #include, being a different path).
But when I build I get 10 compiler errors and I don't know what they mean, stuff like:
...\main.cpp:11: error: undefined reference to `_imp__curl_easy_init'
...\main.cpp:13: error: undefined reference to `_imp__curl_easy_setopt'
and so on.
I'm not sure if I'm using the right library/header files, I don't know what I'm doign wrong.
I downloaded curl-7.45.0.zip and included the curl.h inside "include/curl" into my project, and I can see that Qt reads it because the autocomplete works.
I'm on Windows 7 64 bit.
Solved: I had to use MinGW libraries and modify the .pro file to add -lcurl