From faef8dc3c62ed87e09b5c0bc6be906b159aee38f Mon Sep 17 00:00:00 2001 From: Konstantinos Gkinis Date: Wed, 8 Aug 2018 10:06:12 +0300 Subject: [PATCH] Added info on Windows installation dependencies (2018 ed) Currently, if you follow the installation instructions, you vaguely get instructed to install VC++. If you only install VC++ 17 (on Windows 10 at least), `rustc` can't find a proper linker ([see here](https://github.com/rust-lang-nursery/rustup.rs/issues/1003#issuecomment-289827271)) There is a number of issues with the rust compiler not being able to find a linker on Windows, for the Hello World tutorial ([example 1](https://github.com/rust-lang-nursery/rustup.rs/issues/1455), [example 2](https://github.com/rust-lang-nursery/rustup.rs/issues/1363), [example 3](https://github.com/rust-lang/rust/issues/43039)). Maybe this clarification will help. --- 2018-edition/src/ch01-01-installation.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/2018-edition/src/ch01-01-installation.md b/2018-edition/src/ch01-01-installation.md index f2c156e938..1d78b92f6f 100644 --- a/2018-edition/src/ch01-01-installation.md +++ b/2018-edition/src/ch01-01-installation.md @@ -72,7 +72,10 @@ the instructions for installing Rust. At some point in the installation, you’l receive a message explaining that you’ll also need the C++ build tools for Visual Studio 2013 or later. The easiest way to acquire the build tools is to install [Build Tools for Visual Studio 2017][visualstudio]. The tools are in -the Other Tools and Frameworks section. +the Other Tools and Frameworks section. Make sure to install +`Visual C++ 2015 toolset for desktop`; as of the time of writing, the Rust +compiler canot use VC++ 17, thus you need the 2015 version. + [install]: https://www.rust-lang.org/install.html [visualstudio]: https://www.visualstudio.com/downloads/