Rust 报错 error: linker `link.exe` not found

379 阅读1分钟

在Windows10系统上报错,如何处理,问题如下图所示:

image.png

不要慌,我们来看如何解决:

rustup uninstall toolchain stable-x86_64-pc-windows-msvc
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu

一条条运行上面代码。这里就不截图了 记得上面如何看出运行成功了,如下提示就说明安装成功了。

image.png

然后我们重新编译运行Rust文件,如下所示:

image.png

今天就到这,有什么Rust的问题欢迎私聊,感谢大家观看