一.下载库
1.1 下载libcul
地址:https://curl.haxx.se/download.html#Win32
1.2 下载zlib
地址:http://zlib.net/
1.3 下载activeperl
地址:http://www.activestate.com/activeperl/downloads
1.4 下载openssl
官网:https://www.openssl.org/source/
下载地址:https://github.com/openssl/openssl
二.编译
2.1 编译zlib
问题1:error LNK2026: module unsafe for SAFESEH image
解决方案:
去掉相应连接属性即可,如图
问题2:fatal error LNK1118: syntax error in ‘VERSION’ statement
解决方案:
打开zlibvc.def文件VERSION 修改为1.28即可
2.2编译openssl
本文档提供了在Windows环境下编译CURL所需的依赖库zlib及openssl的详细步骤,并解决常见编译错误,包括LNK2026模块不安全问题及fatal error LNK1118语法错误。
1474

被折叠的 条评论
为什么被折叠?



