Avatar ·

Rust compilation error in Windows: linker `link.exe` not found

Hi everyone! I just started learning Rust and decided to write my first "Hello, world!" program. I installed Rust through the official `rustup-init.exe` installer, everything went successfully. I created a new project with `cargo new hello_world`, navigated to the folder, and when trying to compile the simplest code with `cargo build`, I get this error: ``` error: linker `link.exe` not found | = note: program cannot be run: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\link.exe" = help: make sure Visual Studio tool paths are in the PATH variable. ``` Here is my code (`main.rs` file): ```rust fn main() { println!("Hello, world!"); } ``` I'm using Windows 11, Rust version 1.76.0. Visual S