From 0535c9ceeeb400379840e28abab0ddae97c4493a Mon Sep 17 00:00:00 2001 From: Konstantinos Gkinis Date: Wed, 8 Aug 2018 10:03:06 +0300 Subject: [PATCH] Added info on Windows installation dependencies 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. --- second-edition/src/ch01-01-installation.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/second-edition/src/ch01-01-installation.md b/second-edition/src/ch01-01-installation.md index d0e5e1fdac..56c0fa31fe 100644 --- a/second-edition/src/ch01-01-installation.md +++ b/second-edition/src/ch01-01-installation.md @@ -73,7 +73,9 @@ 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/