Rust'ı yüklediniz, cargo new ile yeni projenizi oluşturdunuz. Tam varsayılan olan "Hello World" fonksiyonunu test edeceksinizki cargo run komutu sonrası karşınıza aşağıdaki hata geldi!
Kod:
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.
note: VS Code is a different product, and is not sufficient.
error: could not compile `hello-rust` (bin "hello-rust") due to 1 previous error
Hatayı çözmek için Windows için GNU derleyicisi ve linker'ını yükleyeceğiz. Bunun için ilk olarak aşağıdaki kodu giriyoruz. Bu bize stable yani kararlı sürümü indirecektir.