libCurl no such file Xcode

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.

Anyone knows whats the problem here.

You can use #include<curl/curl.h> and add search path for include to “COCOS2DX_ROOT/cocos2dx/platform/third_party/ios”.

you can take a look at sample project of cocos2d-x !
it will show u how to use libcurl

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 put
lcurl into Other linker flags it shows error, library -lcurl not found.

Hey thanks it worked…
I forgot to include it in the target settings :slight_smile: