在 Windows 下编译 Rus 的 t 第一个报错:
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017, VS 2019 or VS 2022 was installed with the Visual C++ option
error: aborting due to previous error
错误信息很明显:依赖于微软的 msvc linker.exe。
一般让去下载 VS,不过可以直接用 rust 命令解决。
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu
正文完