【发布时间】:2018-05-14 18:49:45
【问题描述】:
我有一个可以在 Linux、macOS 和 Windows 10 上正常编译的 Rust 项目。
我今天使用Visual Studio Installer 在我的 Windows 7 计算机上安装了以下单个组件:
-
VC++ 2015.3 v14.00 (v140) toolset for desktop-
Windows Universal CRT SDK(依赖) -
Windows 8.1 SDK(依赖)
-
之后,我使用来自official website 的新rustup-init.exe 安装了Rust。
当我在 Windows 7 计算机上的 Rust 项目上运行 cargo build 时,它失败并显示以下消息:
error: linking with `C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe\` failed: exit code: 325595.
在我的 Windows 10 计算机上单独运行 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe 不带任何参数会产生一些“帮助”信息,但在我的 Windows 7 计算机上,我会收到一个带有错误消息的窗口:
The application was unable to start correctly (0xc000007b). Click Ok to close the application.
我的 Google-Fu 没有找到任何有用的信息。我试过了:
sfc /scannow- 确保 System32 没有 32 位 DLL
- 确保 SysWOW64 没有 64 位 DLL
【问题讨论】: