首页 > 系统相关 >windows下运行rust报错error: linker `link.exe` not found

windows下运行rust报错error: linker `link.exe` not found

时间:2022-10-13 06:00:21浏览次数:51  
标签:exe windows linker 报错 error link found

windows下运行rust报错error: linker `link.exe` not found

1. 使用rustup-init安装成功后,运行cargo run报错如下:error: linker `link.exe` not found。网上各种都是说要安装vs或者cpp build工具,设备比较落后,禁不起vs的体量,就使用window-gnu的方法解决。

2. rustup toolchain install stable-x86_64-pc-windows-gnu

3. rustup default stable-x86_64-pc-windows-gnu

4. 可以了。

原文链接:https://blog.csdn.net/csdnksqc/article/details/123072295

标签:exe,windows,linker,报错,error,link,found
From: https://www.cnblogs.com/andy-chi/p/16786718.html

相关文章