Skip to content

Error message for missing linker on MSVC is not actionable #39044

Closed
@K900

Description

@K900

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.E-help-wantedCall for participation: Help is requested to fix this issue.O-windowsOperating system: WindowsO-windows-msvcToolchain: MSVC, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions