本文介绍了为 Win32 编译 OpenSSL 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 Win32 上构建 OpenSSL 时出现以下错误:

I get the following error when trying to build OpenSSL on Win32:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\errno.h(92):错误 C2220:警告被视为错误 - 未生成对象"文件
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\errno.h(92):警告 C4005:'EADDRINUSE':宏重新定义
tmp32\e_os.h(153) : 参见之前对 'EADDRINUSE' 的定义
NMAKE:致命错误 U1077:'"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.EXE"':返回代码 '0x2'停止.

我已按照 INSTALL.W32 中的说明进行操作.我配置了 no-asm 标志.我使用的是 Visual Studio Express 2010 C++.

I've followed the instructions in INSTALL.W32 to the letter. I configured with the no-asm flag. I am using Visual Studio Express 2010 C++.

感谢您的宝贵时间.

推荐答案

显然这是 OpenSSL 1.0.0 中的一个错误.我下载了 1.0.0a 源代码,编译正常.

Apparently this a bug in OpenSSL 1.0.0. I downloaded the 1.0.0a source and it is compiling fine.

这篇关于为 Win32 编译 OpenSSL 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-19 06:28