1. Http related:
1> libExtensions. lib (HttpClient. obj): error LNK2019: the external symbol _ imp _ pthread_create that cannot be parsed. This symbol is used in the function "private: bool _ thiscall cocos2d: extension: CCHttpClient :: lazyInitThreadSemphore (void )"(? Referenced in lazyInitThreadSemphore @ CCHttpClient @ extension @ cocos2d @ AAE_NXZ)
1> libExtensions. lib (HttpClient. obj): error LNK2019: the external symbol _ imp _ pthread_detach that cannot be parsed.
Solution: choose Project Properties> linker> Add libcurl_imp.lib and pthreadVCE2.lib to the additional dependency. Compile again and let you go.
2. When the program is compiled correctly, the following prompt is displayed during debugging:
void CCObject::retain(void) { CCAssert(m_uReference > 0, "reference count should greater than 0"); ++m_uReference; } void CCObject::retain(void){ CCAssert(m_uReference > 0, "reference count should greater than 0"); ++m_uReference;
} Stack debugging results are as follows:
cardGlobal_array=CCArray::createWithContentsOfFile("card.plist"); cardGlobal_array->retain(); cardGlobal_array=CCArray::createWithContentsOfFile("card.plist");cardGlobal_array->retain();
If there is a problem, go to the source code via F11 and check that the directory loaded by the image is incorrect. The card. plist image is not found in the default directory.
Solution: add a sub-path when loading, such as plist/card. plist.