Email me

Rust errors / Build and Cargo

Rust build error · checked with Rust 1.99.0

error: linker `link.exe` not found

error: linker `link.exe` not found

What it meansOn Windows, Rust's default target (x86_64-pc-windows-msvc) links with Microsoft's linker, which comes with Visual Studio Build Tools, not with Rust.

Why it happens

  • Rust installed with rustup but the Visual Studio C++ build tools were never installed.
  • Build Tools installed without the "Desktop development with C++" workload (or the Windows SDK).
  • A shell that cannot find the tools (rare; rustup finds them through the registry).

How to fix it

1. Install the C++ build tools

Install Visual Studio Build Tools with the "Desktop development with C++" workload (MSVC and a Windows SDK), then open a new terminal.

winget install Microsoft.VisualStudio.2022.BuildTools --override "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --passive"

2. Or use the GNU toolchain

Works without Visual Studio, but some crates expect MSVC.

rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu

Other wordings of this error

linker link.exe not found, note: the msvc targets depend on the msvc linker but `link.exe` was not found, msvc linker not found rust

Other build errors

Up next

Find the right pagePaste any Rust errorCompiler codes and build errors in one finder.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ