How can i use libcurl in my project!

I copy the libcurl.a from xxx/cocos2dx/platform/third_part/ios/libraries and all .h from curl/ to my project
so ,i get an error “Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++–4.2 failed with exit code 1”
please ,how can i fix it

“failed with exit code1” is the result, you must paste the reason, the whole paragraph of error report that I can help you to locate the problem.

hey ~

May be u can check your project setting
(header & lib path)

i try the libcurl succesful. :smiley:

I fix it .thanks

wow… i’m still finding that trouble… the reason is a [ duplicate symbol _main ]
please help… me… you guys… T_T

I am stuck with the same problem. Duplicate symbol _main . Please tell how to fix it. The tests (provided with cocos2d-x) are running fine. I have compared the compiler and linker flags , everything seems to be fine. But still getting this error.

http://www.cocos2d-x.org/boards/7/topics/5390?r=7066#message-7066
I think this thread can help you.

I have gone through the thread … ‘Other Linker Flags’ field is already blank :frowning: …… i have tried another thing …. made a new project from template and next what i did is to add libcurl.a to the Frameworks (by add existing files) and project stops building …." ld: duplicate symbol _main in " … is the error ……