trying to use CCHttpClient but got extension Link Error

I just want to use CCHttpClient but something goes wrong.

I have included “extensions/cocos-ext.h”

and changed my Additional dependencies as below:

libcocos2d.lib
opengl32.lib
glew32.lib
libBox2d.lib
libCocosDenshion.lib
libExtensions.lib
libcurl_imp.lib
pthreadVCE2.lib

I got the following LINK errors when compile:

error LNK2005: "public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in libExtensions.lib(HttpClient.obj)
error LNK2005: "public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in libExtensions.lib(HttpClient.obj)
error LNK2005: "public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(class std::basic_string,class std::allocator > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in libExtensions.lib(HttpClient.obj)
error LNK2005: "public: char const * __thiscall std::basic_string,class std::allocator >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in libExtensions.lib(HttpClient.obj)
error LNK2005: "public: unsigned int __thiscall std::basic_string,class std::allocator >::size(void)const " (?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ) already defined in libExtensions.lib(HttpClient.obj)
error LNK2005: "public: void __thiscall std::basic_string,class std::allocator >::clear(void)" (?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ) already defined in libExtensions.lib(HttpClient.obj)
error LNK2005: "public: __thiscall std::allocator::allocator(void)" (??0?$allocator@D@std@@QAE@XZ) already defined in libExtensions.lib(HttpClient.obj)
error LNK2005: "public: char * __thiscall std::allocator::allocate(unsigned int)" (?allocate@?$allocator@D@std@@QAEPADI@Z) already defined in libExtensions.lib(HttpClient.obj)
error LNK2005: "public: void __thiscall std::allocator::deallocate(char *,unsigned int)" (?deallocate@?$allocator@D@std@@QAEXPADI@Z) already defined in libExtensions.lib(HttpClient.obj)
error LNK2005: "public: __thiscall std::allocator::allocator(class std::allocator const &)" (??0?$allocator@D@std@@QAE@ABV01@@Z) already defined in libExtensions.lib(HttpClient.obj)
error LNK2005: "public: unsigned int __thiscall std::allocator::max_size(void)const " (?max_size@?$allocator@D@std@@QBEIXZ) already defined in libExtensions.lib(HttpClient.obj)
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base12::_Container_base12(void)" (__imp_??0_Container_base12@std@@QAE@XZ) referenced in function "public: __thiscall std::_String_val >::_String_val >(void)" (??0?$_String_val@U?$_Simple_types@D@std@@@std@@QAE@XZ)
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base12::~_Container_base12(void)" (__imp_??1_Container_base12@std@@QAE@XZ) referenced in function "public: __thiscall std::_String_val >::~_String_val >(void)" (??1?$_String_val@U?$_Simple_types@D@std@@@std@@QAE@XZ)
error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct std::_Iterator_base12 * * __thiscall std::_Container_base12::_Getpfirst(void)const " (__imp_?_Getpfirst@_Container_base12@std@@QBEPAPAU_Iterator_base12@2@XZ) referenced in function "protected: void __thiscall std::vector >::_Orphan_range(char *,char *)const " (?_Orphan_range@?$vector@DV?$allocator@D@std@@@std@@IBEXPAD0@Z)
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base12::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base12@std@@QAEXXZ) referenced in function __catch$??$_Insert@PAD@?$vector@DV?$allocator@D@std@@@std@@QAEXV?$_Vector_const_iterator@V?$_Vector_val@U?$_Simple_types@D@std@@@std@@@1@PAD1Uforward_iterator_tag@1@@Z$0
error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc@std@@YAXXZ) referenced in function "char * __cdecl std::_Allocate(unsigned int,char *)" (??$_Allocate@D@std@@YAPADIPAD@Z)
error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z) referenced in function "public: void __thiscall std::basic_string,class std::allocator >::_Xlen(void)const " (?_Xlen@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEXXZ)
error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z) referenced in function "public: void __thiscall std::basic_string,class std::allocator >::_Xran(void)const " (?_Xran@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEXXZ)
error LNK2019: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_Syserror_map@std@@YAPBDH@Z) referenced in function "public: virtual class std::error_condition __thiscall std::_System_error_category::default_error_condition(int)const " (?default_error_condition@_System_error_category@std@@UBE?AVerror_condition@2@H@Z)
error LNK2019: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPBDH@Z) referenced in function "public: virtual class std::basic_string,class std::allocator > __thiscall std::_System_error_category::message(int)const " (?message@_System_error_category@std@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@H@Z)
error LNK2019: unresolved external symbol __imp__pthread_create referenced in function "private: bool __thiscall cocos2d::extension::CCHttpClient::lazyInitThreadSemphore(void)" (?lazyInitThreadSemphore@CCHttpClient@extension@cocos2d@@AAE_NXZ)
error LNK2019: unresolved external symbol __imp__pthread_detach referenced in function "private: bool __thiscall cocos2d::extension::CCHttpClient::lazyInitThreadSemphore(void)" (?lazyInitThreadSemphore@CCHttpClient@extension@cocos2d@@AAE_NXZ)
error LNK2019: unresolved external symbol __imp__pthread_exit referenced in function "void * __cdecl cocos2d::extension::networkThread(void *)" (?networkThread@extension@cocos2d@@YAPAXPAX@Z)
error LNK2019: unresolved external symbol __imp__pthread_mutex_init referenced in function "private: bool __thiscall cocos2d::extension::CCHttpClient::lazyInitThreadSemphore(void)" (?lazyInitThreadSemphore@CCHttpClient@extension@cocos2d@@AAE_NXZ)
error LNK2019: unresolved external symbol __imp__pthread_mutex_destroy referenced in function "void * __cdecl cocos2d::extension::networkThread(void *)" (?networkThread@extension@cocos2d@@YAPAXPAX@Z)
error LNK2019: unresolved external symbol __imp__pthread_mutex_lock referenced in function "private: void __thiscall cocos2d::extension::CCHttpClient::dispatchResponseCallbacks(float)" (?dispatchResponseCallbacks@CCHttpClient@extension@cocos2d@@AAEXM@Z)
error LNK2019: unresolved external symbol __imp__pthread_mutex_unlock referenced in function "private: void __thiscall cocos2d::extension::CCHttpClient::dispatchResponseCallbacks(float)" (?dispatchResponseCallbacks@CCHttpClient@extension@cocos2d@@AAEXM@Z)
error LNK2019: unresolved external symbol __imp__sem_init referenced in function "private: bool __thiscall cocos2d::extension::CCHttpClient::lazyInitThreadSemphore(void)" (?lazyInitThreadSemphore@CCHttpClient@extension@cocos2d@@AAE_NXZ)
error LNK2019: unresolved external symbol __imp__sem_destroy referenced in function "void * __cdecl cocos2d::extension::networkThread(void *)" (?networkThread@extension@cocos2d@@YAPAXPAX@Z)
error LNK2019: unresolved external symbol __imp__sem_wait referenced in function "void * __cdecl cocos2d::extension::networkThread(void *)" (?networkThread@extension@cocos2d@@YAPAXPAX@Z)
error LNK2019: unresolved external symbol __imp__sem_post referenced in function "private: virtual __thiscall cocos2d::extension::CCHttpClient::~CCHttpClient(void)" (??1CCHttpClient@extension@cocos2d@@EAE@XZ)

Don’t know how it works for CCHttpClient, but for scroll view the following does the trick:

`#include “…\extensions\cocos-ext.h”
#include “…/extensions/GUI/CCScrollView/CCScrollView.h”
USING_NS_CC_EXT;

CCScrollView* list = CCScrollView::create();
`