Install MinGW-w64 GCC (WinLibs) on Windows

GCC compiler toolchain for Windows (MinGW-w64) to build C and C++ programs.

Install commands

Open PowerShell or Windows Terminal and run one of these commands to install MinGW-w64 GCC (WinLibs).

winget
winget install --id BrechtSanders.WinLibs.POSIX.UCRT --exact --source winget
Scoop
scoop install main/mingw
Chocolatey
choco install mingw -y

Package details

Category
Languages & SDKs
winget
BrechtSanders.WinLibs.POSIX.UCRT
Scoop
main/mingw
Chocolatey
mingw

Package sources

The script installs exactly these packages. Versions are the latest ones recorded by the automated catalog check on 2026-09-14; they are used when version pinning is enabled.

Package managerPackageVerified versionSource
wingetBrechtSanders.WinLibs.POSIX.UCRT16.1.0-14.0.0-r4Manifest
Scoopmain/mingw–Manifest
Chocolateymingw16.1.0Manifest

Install MinGW-w64 GCC (WinLibs) together with other apps

Add this app to a WinMate selection to install it together with the rest in one script and with a single administrator prompt.

Add to my install script

More Languages & SDKs