fatal error: curl/curl.h: No such file or directory
20,271
I solved it
I just copied the curl directory that I downloaded to /usr/x86_64-w64-mingw32/include/
and when you compile you need to do -lcurl/curl
Thanks for your help
Author by
Nati V
Updated on October 13, 2020Comments
-
Nati V over 3 years
I downloaded the
libcurl
library from https://curl.haxx.se/libcurl/
and i'm trying to include and compile it
but I get this errorfatal error: curl/curl.h: No such file or directory
even that I put the curl folder in the same directory
the command that I used to compile
x86_64-w64-mingw32-gcc try.c -o a.exe -lws2_32 -lcurl
So I searched and I found these answers
curl.h no such file or directory , Ubuntu - #include <curl/curl.h> no such file or directory
so I did
sudo apt-get install libcurl4-openssl-dev
but still not working what to do?