2012-09-26 81 views
0

我在VC++环境提示符下在Win32上安装OpenSSL openssl-0.9.7。 当我运行以下命令:为Win32编译OpenSSL-0.9.7时出错

NMAKE -f MS \ ntdll.mak

我得到以下结果

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 
Copyright (C) Microsoft Corporation. All rights reserved. 

Building OpenSSL 
     copy nul+ .\crypto\buildinf.h tmp32dll\buildinf.h 
nul 
.\crypto\buildinf.h 
     1 file(s) copied. 
     cl /Fotmp32dll\cryptlib.obj -Iinc32 -Itmp32dll /MD /W3 /WX /G5 /Ox /O2 
/Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDI 
AN -DDSO_WIN32 -DBN_ASM -DMD5_ASM -DSHA1_ASM -DRMD160_ASM /Fdout32dll -DOPENSSL_ 
NO_KRB5 -D_WINDLL -DOPENSSL_BUILD_SHLIBCRYPTO -c .\crypto\cryptlib.c 
cl : Command line warning D9002 : ignoring unknown option '/G5' 
cryptlib.c 
C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\errno.h(92) : error C22 
20: warning treated as error - no 'object' file generated 
C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\errno.h(92) : warning C 
4005: 'EADDRINUSE' : macro redefinition 
     tmp32dll\e_os.h(156) : see previous definition of 'EADDRINUSE' 
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI 
N\cl.EXE"' : return code '0x2' 
Stop. 

我使用Visual Studio 2010中有什么问题以及如何解决?

+1

看看[这张票](http://rt.openssl.org/Ticket/Display.html?id=2261&user=guest&pass=guest),也可能出现[错误编译OpenSSL for Win32](http ://stackoverflow.com/questions/3242386/error-compiling-openssl-for-win32)(看看那里的答案)。 – javex

回答

0

你看过.txt文件中给出的构建步骤吗?我曾与此合作过。它应该工作。