编译UltraVNC时的Debug版本时遇到vncclient.obj : error LNK2019: unresolved external symbol _compress等错误

在编译UltraVNC 1.0.9.6.1的Debug版本时,遇到一系列关于_ZLIB_WINAPI未解析外部符号的错误,包括_compress、_adler32、_uncompress等。为解决此问题,需要取消zlibstat项目属性中的ZLIB_WINAPI预处理器定义。另外,在编译vncviewer时,若遇到JPEG相关链接错误,可使用libjpeg-turbo-win的DebugLib-Static版本,并将库文件重命名为jpeg-turbo-win-static-d.lib。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

当在Debug版本时编译UltraVNC 1.0.9.6.1版本的winvnc源码时会遇到如下错误

1>------ Build started: Project: winvnc, Configuration: Debug Win32 ------
1>Performing Pre-Link Event...
1>buildtime.cpp
1>Linking...
1>vncclient.obj : error LNK2019: unresolved external symbol _compress referenced in function "protected: int __thiscall vncClient::SendCacheZip(class std::vector<struct rfb::Rect,class std::allocator<struct rfb::Rect> > const &)" (?SendCacheZip@vncClient@@IAEHABV?$vector@URect@rfb@@V?$allocator@URect@rfb@@@std@@@std@@@Z)
1>vncEncodeZlib.obj : error LNK2001: unresolved external symbol _compress
1>vncclient.obj : error LNK2019: unresolved external symbol _adler32 referenced in function "public: int __thiscall vncClient::GenerateFileChecksums(void *,char *,int)" (?GenerateFileChecksums@vncClient@@QAEHPAXPADH@Z)
1>vncclient.obj : error LNK2019: unresolved external symbol _uncompress referenced in function "public: bool __thiscall vncClient::ReceiveFileChunk(int,int)" (?ReceiveFileChunk@vncClient@@QAE_NHH@Z)
1>vncEncodeTight.obj : error LNK2019: unresolved external symbol _deflateEnd referenced in function "public: virtual __thiscall vncEncodeTight::~vncEncodeTight(void)" (??1vncEncodeTight@@UAE@XZ)
1>vncEncodeZlib.obj : error LNK2001: unresolved external symbol _deflateEnd
1>vncEncodeZlibHex.obj : error LNK2001: unresolved external symbol _deflateEnd
1>rdr.lib(ZlibOutStream.obj) : error LNK2001: unresolved external

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值