提问人:Loaf 提问时间:10/7/2023 更新时间:10/7/2023 访问量:42
Rustup 更新损坏了链接器
Rustup update broke linker
问:
有一天,我正在安装 cargo-binutils 和 llvm,然后我决定更新 rustc 和 cargo。在我用 then 命令更新 rustc 和 cargo 之后
rustup udpate
我不能再编译任何程序了,它打印了这个
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 Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.
我尝试卸载 cargo-binutils 和 llvm,以为它会解决问题,但事实并非如此。
在这件事发生之前,我已经很好地编译了每个程序。有人可以解释为什么会发生这种情况吗?提前致谢
答: 暂无答案
上一个:间歇性“内存耗尽”链接器问题
下一个:编译/链接过程如何工作?
评论