一.下载库
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