u0u0/Cocos2d-Lua-Community

编译CreateProject.py创建的工程出现error LINK2019

Cmduck opened this issue · 0 comments

Cmduck commented

31>cocos2d.lib(CCFileUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) void * __cdecl cocos2d::unzOpen(char const *)" (_imp?unzOpen@cocos2d@@YAPAXPBD@Z),函数 "public: unsigned char * __thiscall cocos2d::FileUtils::getFileDataFromZip(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,long *)const " (?getFileDataFromZip@FileUtils@cocos2d@@QBEPAEABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@0paj@Z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) void * __cdecl cocos2d::unzOpen(char const *)" (_imp?unzOpen@cocos2d@@YAPAXPBD@Z)
31>cocos2d.lib(CCFileUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzClose(void *)" (_imp?unzClose@cocos2d@@YAHPAX@Z),函数 "public: unsigned char * __thiscall cocos2d::FileUtils::getFileDataFromZip(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,long *)const " (?getFileDataFromZip@FileUtils@cocos2d@@QBEPAEABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@0paj@Z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzClose(void *)" (_imp?unzClose@cocos2d@@YAHPAX@Z)
31>cocos2d.lib(CCFileUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzOpenCurrentFile(void *)" (_imp?unzOpenCurrentFile@cocos2d@@YAHPAX@Z),函数 "public: unsigned char * __thiscall cocos2d::FileUtils::getFileDataFromZip(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,long *)const " (?getFileDataFromZip@FileUtils@cocos2d@@QBEPAEABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@0paj@Z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzOpenCurrentFile(void *)" (_imp?unzOpenCurrentFile@cocos2d@@YAHPAX@Z)
31>cocos2d.lib(CCFileUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzReadCurrentFile(void *,void *,unsigned int)" (_imp?unzReadCurrentFile@cocos2d@@YAHPAX0I@Z),函数 "public: unsigned char * __thiscall cocos2d::FileUtils::getFileDataFromZip(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,long *)const " (?getFileDataFromZip@FileUtils@cocos2d@@QBEPAEABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@0paj@Z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzReadCurrentFile(void *,void *,unsigned int)" (_imp?unzReadCurrentFile@cocos2d@@YAHPAX0I@Z)
31>cocos2d.lib(CCFileUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzGetCurrentFileInfo(void *,struct cocos2d::unz_file_info_s *,char *,unsigned short,void *,unsigned short,char *,unsigned short)" (_imp?unzGetCurrentFileInfo@cocos2d@@YAHPAXPAUunz_file_info_s@1@PADG0G2G@Z),函数 "public: unsigned char * __thiscall cocos2d::FileUtils::getFileDataFromZip(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,long *)const " (?getFileDataFromZip@FileUtils@cocos2d@@QBEPAEABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@0paj@Z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzGetCurrentFileInfo(void *,struct cocos2d::unz_file_info_s *,char *,unsigned short,void *,unsigned short,char *,unsigned short)" (_imp?unzGetCurrentFileInfo@cocos2d@@YAHPAXPAUunz_file_info_s@1@PADG0G2G@Z)
31>cocos2d.lib(CCFileUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzCloseCurrentFile(void *)" (_imp?unzCloseCurrentFile@cocos2d@@YAHPAX@Z),函数 "public: unsigned char * __thiscall cocos2d::FileUtils::getFileDataFromZip(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,long *)const " (?getFileDataFromZip@FileUtils@cocos2d@@QBEPAEABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@0paj@Z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzCloseCurrentFile(void *)" (_imp?unzCloseCurrentFile@cocos2d@@YAHPAX@Z)
31>cocos2d.lib(CCFileUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzLocateFile(void *,char const ,int (__cdecl)(void *,char const *,char const *))" (_imp?unzLocateFile@cocos2d@@YAHPAXPBDP6AH011@Z@Z),函数 "public: unsigned char * __thiscall cocos2d::FileUtils::getFileDataFromZip(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,long *)const " (?getFileDataFromZip@FileUtils@cocos2d@@QBEPAEABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@0paj@Z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) void * __cdecl cocos2d::unzOpen2(char const *,struct zlib_filefunc_def_s *)" (_imp?unzOpen2@cocos2d@@YAPAXPBDPAUzlib_filefunc_def_s@@@z),函数 "private: bool __thiscall cocos2d::ZipFile::initWithBuffer(void const *,unsigned long)" (?initWithBuffer@ZipFile@cocos2d@@AAE_NPBXK@Z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzGoToFirstFile(void *)" (_imp?unzGoToFirstFile@cocos2d@@YAHPAX@Z),函数 "public: class std::basic_string<char,struct std::char_traits,class std::allocator > __thiscall cocos2d::ZipFile::getFirstFilename(void)" (?getFirstFilename@ZipFile@cocos2d@@QAE?AV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@xz) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzGoToFirstFile2(void *,struct cocos2d::unz_file_info64_s *,char *,unsigned short,void *,unsigned short,char *,unsigned short)" (_imp?unzGoToFirstFile2@cocos2d@@YAHPAXPAUunz_file_info64_s@1@PADG0G2G@Z),函数 "public: bool __thiscall cocos2d::ZipFile::setFilter(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?setFilter@ZipFile@cocos2d@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzGoToNextFile(void *)" (_imp?unzGoToNextFile@cocos2d@@YAHPAX@Z),函数 "public: class std::basic_string<char,struct std::char_traits,class std::allocator > __thiscall cocos2d::ZipFile::getNextFilename(void)" (?getNextFilename@ZipFile@cocos2d@@QAE?AV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@xz) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzGoToNextFile2(void *,struct cocos2d::unz_file_info64_s *,char *,unsigned short,void *,unsigned short,char *,unsigned short)" (_imp?unzGoToNextFile2@cocos2d@@YAHPAXPAUunz_file_info64_s@1@PADG0G2G@Z),函数 "public: bool __thiscall cocos2d::ZipFile::setFilter(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?setFilter@ZipFile@cocos2d@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzGetFilePos(void *,struct cocos2d::unz_file_pos_s *)" (_imp?unzGetFilePos@cocos2d@@YAHPAXPAUunz_file_pos_s@1@@z),函数 "public: bool __thiscall cocos2d::ZipFile::setFilter(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?setFilter@ZipFile@cocos2d@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z) 中引用了该符号
31>cocos2d.lib(ZipUtils.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl cocos2d::unzGoToFilePos(void *,struct cocos2d::unz_file_pos_s *)" (_imp?unzGoToFilePos@cocos2d@@YAHPAXPAUunz_file_pos_s@1@@z),函数 "public: unsigned char * __thiscall cocos2d::ZipFile::getFileData(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,long *)" (?getFileData@ZipFile@cocos2d@@QAEPAEABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@paj@Z) 中引用了该符号
31>D:\Cocos-Lua\game\win32-build\bin\game\Debug\game.exe : fatal error LNK1120: 14 个无法解析的外部命令

使用是visual studio2022