1

I want to build the environment of Rust, but when I install racer, the following error occurred

error: linker `link.exe` not found

I tried to install 'Microsoft Build Tools 2015' but I still can't succeed.

Shepmaster
  • 388,571
  • 95
  • 1,107
  • 1,366
jackie
  • 31
  • 4
  • 1
    Welcome to Stack Overflow! I believe your question is answered by the answers of [`cargo build` fails with linking error “link.exe failed: exit code: 325595”](https://stackoverflow.com/q/50337099/155423) or [Unable to compile Rust hello world on Windows: linker link.exe not found](https://stackoverflow.com/q/55603111/155423). If you disagree, please **[edit]** your question to explain the differences. Otherwise, we can mark this question as already answered. – Shepmaster Apr 19 '19 at 17:31
  • TL;DR: use a newer version of the tools. 2017+ should be good. – Shepmaster Apr 19 '19 at 17:31
  • I tried to install 2017 and get following message : 'Cannot install a product when a newer version is installed' – jackie Apr 19 '19 at 17:34
  • What newer version have you installed? – Shepmaster Apr 19 '19 at 17:35
  • I have installed visual studio 2017/2019,but only installed .net core... – jackie Apr 19 '19 at 17:45
  • What happens when you install the C / C++ build tools for the 2019 version (as suggested in the duplicate links)? – Shepmaster Apr 19 '19 at 17:46
  • I need to install 'MSVC v142 – VS 2019 C++ x64/x86 ' right? Those translations are not the same during my installation process..... – jackie Apr 19 '19 at 17:56
  • Seems believable. I'd just pick whatever contains "C" or "C++" – Shepmaster Apr 19 '19 at 18:01
  • Thank you so much. I install the 'MSVC v142 – VS 2019 C++ x64/x86 ' and it's work fine. – jackie Apr 21 '19 at 09:04

0 Answers0