【发布时间】:2015-10-14 06:15:40
【问题描述】:
我正在编译需要在 python 脚本中使用的 Openssl 库。我正在使用 Visual Studio 2015 开发人员命令提示符。我的机器是 Windows 7 64 位。
当我输入命令时:nmake -f ms\ntdll.mak
我得到这个错误:
tmp32dll\uplink.obj : fatal error LNK1112: module machine type 'X86' conflicts w
ith target machine type 'x64'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\amd64_arm\link.EXE"' : return code '0x458'
Stop.
我搜索了几个类似问题的解决方案,建议从项目设置中更改项目平台。我没有VS项目。我运行所有这些命令只是为了编译 OpenSSL 库。我正在使用 VS 命令。
【问题讨论】:
-
我遇到了同样的问题,并通过选择“VS2015 x64 Native Tools Command Prompt”而不是“Developer Command Prompt for VS2015”解决了这个问题。在源代码的干净版本上尝试(没有以前的构建输出)。
标签: visual-studio visual-c++ visual-studio-2015