[Helpppppppppppp] CCHttpClient in win32 has error


HttpClientTest in Testcpp, it has CCHttpClient and it ok
but i create new project in win32, i call CCHttpClient i has many error.Who can help me??? thx you

some error:

Error 11 error LNK2019: unresolved external symbol impsem_wait referenced in function “void * cdecl cocos2d::extension::networkThread" libExtensions.lib
Error 12 error LNK2019: unresolved external symbol
impsem_post referenced in function "private: virtualthiscall cocos2d::extension::CCHttpClient::~CCHttpClient(void)” (??1CCHttpClient@extension@cocos2d@EAEXZ) libExtensions.lib(HttpClient.obj)

Error 9 error LNK2019: unresolved external symbol impsem_init referenced in function “private: bool __thiscall cocos2d::extension::CCHttpClient::lazyInitThreadSemphore(void)” (?lazyInitThreadSemphore@CCHttpClient@extension@cocos2d@@AAE_NXZ)libExtensions.lib(HttpClient.obj)


I have the same problem, BUG?


Try to add libcurl_imp.lib and pthreadVCE2.lib to Project Properties/Linker/Additional Properties.


Felix L,I love you so much ! I have been confused by the question for a long time. you saved me!


Felix, Thanks a lot. You saved my days :smile: