首页 > 入坑 Rust-lang 程序 error: could not exec the linker `link.exe`:

入坑 Rust-lang 程序 error: could not exec the linker `link.exe`:

安装 Rust-lang

下载地址

找到 Windows (MSVC ABI †) (.msi) 下载 一步步安装

Hello word

创建 main.rs

fn main() {
    println!("Hello, world!");
}

终端运行

F:coding\rust-lang>rustc main.rs
error: could not exec the linker `link.exe`: 系统找不到指定的文件。 (os error 2)

help

第一次接触, Rust 大神在哪里, help me!


MSVC builds of Rust additionally require an installation of Visual Studio 2013 (or later)


link.exe没有添加到环境变量中去所以出错。
我的做法是从“vs2013开发人员命令提示”进入。

【热门文章】
【热门文章】