Error message for missing linker on MSVC is not actionable #39044
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
E-help-wanted
Call for participation: Help is requested to fix this issue.
O-windows
Operating system: Windows
O-windows-msvc
Toolchain: MSVC, Operating system: Windows
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Inspired by this Reddit comment.
Right now, when rustc can't find the linker, it produces a pretty generic error message that explains what went wrong, but doesn't explain how to fix it. A solution might be to extend the error message with something like "Do you have Visual C++ Build Tools installed? Check http://doc.rust-lang.org/some/place for more info." and provide a page explaining what exactly is missing and how to get it somewhere in the docs.
The text was updated successfully, but these errors were encountered: