我尝试编译VC ++应用程序并获取如下错误消息。有谁知道我可能遗失的图书馆是什么?任何建议&建议表示赞赏。
我的环境:
1>------ Build started: Project: paloserver, Configuration: Debug Win32 ------ 1> Creating library C:/Users/a992788/Virtual Machines/Documents/Application/Palo/Palo 3.x Source Code/palo-code-546/molap/server/5.1/SourceCode/Debug/paloserver.lib and object C:/Users/a992788/Virtual Machines/Documents/Application/Palo/Palo 3.x Source Code/palo-code-546/molap/server/5.1/SourceCode/Debug/paloserver.exp 1>unzip.obj : error LNK2019: unresolved external symbol _inflateInit2_ referenced in function _unzOpenCurrentFile3 1>unzip.obj : error LNK2019: unresolved external symbol _inflate referenced in function _unzReadCurrentFile 1>unzip.obj : error LNK2019: unresolved external symbol _crc32 referenced in function _unzReadCurrentFile 1>zip.obj : error LNK2001: unresolved external symbol _crc32 1>unzip.obj : error LNK2019: unresolved external symbol _inflateEnd referenced in function _unzCloseCurrentFile 1>zip.obj : error LNK2019: unresolved external symbol _get_crc_table referenced in function _zipOpenNewFileInZip4_64 1>zip.obj : error LNK2019: unresolved external symbol _deflateInit2_ referenced in function _zipOpenNewFileInZip4_64 1>zip.obj : error LNK2019: unresolved external symbol _deflate referenced in function _zipWriteInFileInZip 1>zip.obj : error LNK2019: unresolved external symbol _deflateEnd referenced in function _zipCloseFileInZipRaw64 1>C:\Users\a992788\Virtual Machines\Documents\Application\Palo\Palo 3.x Source Code\palo-code-546\molap\server\5.1\SourceCode\Debug\paloserver.dll : fatal error LNK1120: 8 unresolved externals
答案 0 :(得分:0)
在源代码中添加对zdll.lib的引用。
#pragma comment (lib, "zdll.lib")