include libcurl in XCode

niwatchai singtiantrakoon wrote:

Hi.
How can I use curl in XCode in a new Cocos2d-x project?

  1. add Existing File libcurl.a in Frameworks folder.
  2. include curl/curl.h in appDelegate.
    But the result is “No search file or directory”
    I’m try to find a differenct Between my project and CurlTest, but I can’t find anything more.
    >
    Thank you.

After I was add libcurl.a from “xxxx/libs/cocos2dx/platform/third_party/ios/libraries” in a new project. The error was “Duplicate symbol _main in ……”.
How can I solve this problem?