cargo build
Compiling rsj-kv v0.1.0 (D:\devlop\ myFirstRustProgram)
error: linker `link.exe` not found
|
= note: 系统找不到指定的文件。 (os error 2)
note: the msvc targets depend on the msvc linker but `link.exe` was not found
报错信息表明编译目标依赖于MSVC(Microsoft Visual C++)链接器,但系统找不到link.exe。
解决方案
1.第一种情况如果cmd rustc -version 显示rust版本,只需要一条命令