Hey i’m trying to use libcurl and have tried the following things and the project can’t still locate curl.
I get the following errors #include <curl/curl.h> No such file or directory #include <curl.h> No such file or directory #include “curl/curl.h” No such file or directory #include “curl.h” No such file or directory
Added libcurl.dylib to framework. It didn’t work
Added libcurl.a from cocos2d-x test project to my projects framework. It didn’t work
Added search path for include to “/usr/include/”
Added search path for lib to “/usr/lib/”
But my project just can’t find curl.h…
I even used #include “/usr/include/curl/curl.h” , which got me 14 compiler errors.
Hey,
I added the search header path to COCOS2DX_ROOT… It still says curl/curl.h no such file or directory. Is there anything else that i need to add…
I also downloaded libcurl seperately, since it can’t find the mac inbuild curl.
Now when i run the command on terminal
$curl-config —libs
it shows me lcurl
But when i putlcurl into Other linker flags it shows error, library -lcurl not found.