🌐
WinLibs
winlibs.com
WinLibs - GCC+MinGW-w64 compiler for Windows
You have written software using another proprietary compiler (like Microsoft Visual C/C++ and Visual Studio) and would like to test if your application compiles using the the most common C/C++ compiler available: GCC.
🌐
GitHub
github.com › brechtsanders › winlibs_mingw
GitHub - brechtsanders/winlibs_mingw: winlibs standalone build of GCC compiler and MinGW-w64
winlibs standalone build of GCC compiler and MinGW-w64 - brechtsanders/winlibs_mingw
Starred by 1.2K users
Forked by 54 users
🌐
Medium
medium.com › @jasonyang.algo › building-c-c-on-windows-with-vcpkg-winlibs-a-practical-toolchain-tutorial-ecb72cb893e4
Building C/C++ on Windows with vcpkg + WinLibs: a Practical Toolchain Tutorial | by Jason Yang | Jan, 2026 | Medium
January 15, 2026 - This is particularly true for those seeking a Linux-like GCC workflow while still benefiting from modern dependency management solutions. This tutorial will walk you through setting up a C/C++ development environment on Windows that closely resembles a Linux-style workflow, utilizing tools like vcpkg and WinLibs...
🌐
YouTube
youtube.com › watch
How to install MinGW-w64 (WinLibs standalone build) and how to compile and run C/C++ on windows 10 - YouTube
WinLibs standalone build of GCC and MinGW-w64 for WindowsWhat is it?In short: it's a free C and C++ compiler for Microsoft Windows.GCC (GNU Compiler Collecti...
Published   January 17, 2023
🌐
mingw-w64
mingw-w64.org › downloads
Pre-built Toolchains - mingw-w64
No installation is required, just ... suite and allows having multiple versions on the same system. ... Installation: Download from winlibs.com and extract archive (no installation needed)....
🌐
Chocolatey
community.chocolatey.org › packages › winlibs
Chocolatey Software | WinLibs [GCC:10.2.0 LLVM/Clang:11.0.0 MinGW-w64:8.0.0 R8] 10.11.8.0
To install WinLibs [GCC:10.2.0 LLVM/Clang:11.0.0 MinGW-w64:8.0.0 R8], run the following command from the command line or from PowerShell:
🌐
SourceForge
sourceforge.net › projects › winlibs-mingw
winlibs_mingw download | SourceForge.net
Download winlibs_mingw for free. WinLibs standalone build of GCC and MinGW-w64 for Windows. Windows version of the free open source GCC (GNU Compiler Collection) compiler for C and C++ (and other languages like Objective-C, Fortran, D). This is a standalone personal build, which means this ...
🌐
Reddit
reddit.com › r/programming › finally an easy way to install gcc/mingw on windows thanks to winlibs.com
r/programming on Reddit: FINALLY an easy way to install GCC/MinGW on windows thanks to WinLibs.com
February 11, 2022 - Since the standalone builds from https://winlibs.com/ don't require installation (just unzip the archive) it allows for having multiple versions of GCC/MinGW on the same system without them interfering with each other.
Find elsewhere
🌐
GitHub
github.com › brechtsanders › winlibs_mingw › releases
Releases · brechtsanders/winlibs_mingw
winlibs standalone build of GCC compiler and MinGW-w64 - Releases · brechtsanders/winlibs_mingw
Author   brechtsanders
🌐
Hacker News
news.ycombinator.com › item
WinLibs: Standalone build of GCC and MinGW-w64 for Windows | Hacker News
May 1, 2023 - After digging through some of the sublinks: · What did I miss? Would love to see a comparison directly on the home page
🌐
GitHub
github.com › brechtsanders › winlibs_tools
GitHub - brechtsanders/winlibs_tools: Tools for building winlibs packages from source using MinGW-w64
Tools for building winlibs packages from source using the MinGW-w64 GCC compiler for Windows.
Starred by 13 users
Forked by 2 users
Languages   C 95.8% | C++ 2.2% | Makefile 2.0%
🌐
GitHub
github.com › bwoodsend › setup-winlibs-action
GitHub - bwoodsend/setup-winlibs-action: Action to quickly setup WinLibs gcc and clang compilers on Github's CI/CD
Install a WinLibs bundle on Windows containing the gcc and optionally clang C/C++ compilers and the headers needed to build native Windows binaries.
Author   bwoodsend
🌐
Scribd
scribd.com › document › 837980300 › Version-Info
Winlibs GCC 14.2.0 Build for Windows | PDF
Version Info - Free download as Text File (.txt), PDF File (.pdf) or read online for free. This document describes the winlibs personal build version of GCC 14.2.0 and related tools, including GDB, LLVM, and MinGW-w64, among others. The build is intended for Intel/AMD 64-bit systems and requires Windows 10 or higher with UCRT.
Top answer
1 of 3
4

The latest version of GCC (9.2.0) compiler combined with the latest MinGW-w64 (7.0.0) headers and libraries can be found in the standalone build at http://winlibs.com/

2 of 3
2

Oh the pain, getting a working GCC for Windows.

build your own?

Building is a fun experience, or a no-fun experience, depending on how you look at it. I've spent literally weeks of time building GCC successfully and unsuccessfully (native and cross). Follow the instructions to the letter, and it works. And then, another day, it doesn't work (with the slightest different sub-sub-release or revision, or the tiniest little change that is entirely "harmless", or to the best of your knowledge no change at all, and you never get it to build again).
Save everything you've done (copy console), keep the build tree, and repeat the build (paste text) 6 months later after first doing a svn update. Compiles fine for 15-20 minutes, then fails. Start from scratch, and spend a day or two until it works, and you cannot tell why it works now.
Use a build script by someone who offers binary builds (so the assumption is that it must work, otherwise where do the binaries come from). The build script more or less does exactly what you've done by hand anyway, and it works, or maybe doesn't work. If you are only interested in actually having a compiler that works for compiling under Windows, and not in spending your life fiddling around, that's not a lot of fun.

use a pre-built binary?

There exists serval binary distros from a variety of sources.

Although downloading binaries is of course always a tidbid risky (even when scanning everything before you run it, malware scanners are nowhere near perfect, or even good or halfway reliable), compilers are particularly high-risk. That's because compilers are a very interesting target for malware distributors as they get free redistribution with everything you build.
I've actually seen GCC builds with malware built-in on apparently harmless sites (forgot the name, but one such example was a site offering GCC builds for several architectures, which looked very nice).

Now... there exists a distro which supports GCC 9.2 since some time built by someone under the pseudonym "nuwen".
It turns out, that "nuwen" is actually Stephan T. Lavavej, so... chances are that this is a distro that you actually want to use (I'm using it anyway). It's unlikely that you will be able build one yourself that's substantially better (also that one has a lot of useful support libs already coming with it), and it's unlikely that it is harmful.

https://nuwen.net/mingw.html

Note that MSYS2 will also allow you to install a very recent GCC (9.1 or 9.2, not sure) via pacman, very fast and very trouble-free. MSYS2 is nice insofar as you get a 95% working Unix-like working environment with 95% of the tools.
And 95% of the time, it works fine in every practical respect. Until then, one day, it doesn't, usually related to some configure script messing up pathnames, or something with environment variables. Or something else very subtle. For example, it is very much possible to successfully build GCC with MSYS2 (I've done it), and it works "perfectly fine" until some weeks later you discover that something doesn't work in your custom build, so some old project of yours now suddenly doesn't build any more when it did with the old stock compiler.
That's probably issues that one could fix, if determined (I'm however too lazy, for me a compiler is something that simply must work).

🌐
Incusdata
incusdata.site › pan › cpp › Cpp- Getting Started with GCC.html
Getting Started with GCC
These do not require installation… simply extract, set the PATH environment variable, and run gcc or g++: WinLibs — Relatively newer distribution without extra libraries (despite the name). Does provide some assemblers, as well as an optional LLVM suite (Clang/LLDB/LLDB).