最佳答案
我已经安装了从 生锈安装页窗口生锈。安装之后,我尝试运行“ hello world”程序,但是得到了以下错误。
>cargo run
错误
Compiling helloworld v0.1.0 (C:\Users\DELL\helloworld)
error: linker `link.exe` not found
note: The system cannot find the file specified. (os error 2)
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015 or VS 2017 was installed with the Visual C++ option
error: aborting due to previous error
error: Could not compile `helloworld`.
To learn more, run the command again with --verbose.
密码 :
fn main() {
println!("Hello, world!");
}