Hi All,
I've been trying so long, but I can't see what I'm doing wrong.
I have downloaded the latest version of libcurl, but I get error message when trying to use it:
No such file or directory
If I look at the exact path it is looking for, the file is there.
I have change the settings in Build Options: Seach Directories: compiler and linker, and Linker Settings.
The linker settings include the .lib file.
The search directories include the include directory. Under this is the curl folder which contains all .h files.
I have the same for Compiler and Linker.
I have put the .exe file in the Windows/System32 folder.
I have copied the dll files and the .h fiiles to all directories where I run my project.
I feel I have followed the tutorials exactly found on the internet.
I am not aware of static/dynamic linking. Is that the problem?
Would be great if you could help me out!
Here is my code:
#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, "curl.haxx.se");
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
return 0;
}
Error message:
\Users\Ola\Documents\cpp\Libraries\curl-7.34.0-win64\lib\libcurl.lib||No such file or directory|
That file is placed in that exact directory where it says it can't find it.
m.