【问题标题】:rust: link.exe not found锈:找不到link.exe
【发布时间】:2020-12-03 01:15:20
【问题描述】:

我安装了 rust 编译器和 MSVC v142 - VS 2009 C++ x64/x84 构建工具 (v14.27)(作为单独的组件)

这似乎不起作用。

rust 还需要我没有安装的其他东西吗?提前谢谢你。

【问题讨论】:

标签: visual-studio rust


【解决方案1】:

也安装 Windows SDK。

我也不想安装所有的 Visual Studio 只是为了从命令行编译 rust。

根据coder-256's link 中的信息,我尝试运行C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat。然后,我没有找到link.exe,而是得到了错误: note: LINK : fatal error LNK1181: cannot open input file 'advapi32.lib'

在堆栈中搜索该错误导致了这个答案:Install the Windows SDK

所以我安装了 Windows 10 SDK,现在(在启动新的 cmd 窗口后)它可以工作了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-08-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-21
    • 2023-02-06
    • 2014-10-25
    相关资源
    最近更新 更多