🌐
Visual Studio Code
code.visualstudio.com › docs › cpp › config-mingw
Using GCC with MinGW
November 3, 2021 - You can install the C/C++ extension by searching for 'C++' in the Extensions view (⇧⌘X (Windows, Linux Ctrl+Shift+X)). Get the latest version of MinGW-w64 via MSYS2, which provides up-to-date native builds of GCC, MinGW-w64, and other helpful C++ tools and libraries. This will provide you with the necessary tools to compile your code, debug it, and configure it to work with IntelliSense.
🌐
SourceForge
sourceforge.net › projects › mingw-w64
MinGW-w64 - for 32 and 64 bit Windows download | SourceForge.net
3 weeks ago - Download MinGW-w64 - for 32 and 64 bit Windows for free. A complete runtime environment for gcc. The mingw-w64 project is a complete runtime environment for gcc to support binaries native to Windows 64-bit and 32-bit operating systems.
Discussions

FINALLY an easy way to install GCC/MinGW on windows thanks to WinLibs.com
I have the "Msys64" package installed. It uses "pacman" to do installation and updates. Hope you've memorized the switches. The main problem with that distribution is that there can be confusion as to which shell you need to run to get things done: "mingw32" shell "mingw64" shell "msys2" shell You'd think that "mingw64" and "msys2" would provide the same C compiler environment, but they do not. The "msys2" is intended on building applications that run under the "msys2" shell, and not for general use. The Windows headers that are included by the "msys2" GCC compiler are incompatible with standard Windows headers. As for how to install the compilers, if you literally ask for just "gcc", you get the MSYS2 version of GCC, not the Mingw64 version of "gcc", so you get broken Windows headers, unless you knew in advance not to download the "gcc" package. More on reddit.com
🌐 r/programming
15
4
February 11, 2022
c++ - Installing the latest version of mingw-w64 on Windows - Stack Overflow
If you want an up-to-date GCC in Windows (currently version 9.3), I recommend downloading and installing the MSYS2 package. Once you install it, launch it using the "MinGW64" icon and install the correct compiler in the terminal. For details, see this question: How to install MinGW-w64 and MSYS2? More on stackoverflow.com
🌐 stackoverflow.com
What is MinGW, why there is a lot of compilers and why this is so confusing?
MinGW is an effort to port GNU tools, including particularly the gcc compiler suite, to run natively in Windows. There's a lot of history but to get the point, when you see a download like x86_64-13.2.0-release-win32-seh-msvcrt-rt_v11-rev1.7z … the various parts of the name indicate: x86_64 = 64 bit. That's what you want. In contrast, just x86 or i686 means 32-bit. 13.3.0 = version number. I believe that as of this writing that's the latest 'n greatest. release, well who knows. Might mean that this is an official release. Or might be in contrast to a "debug" version. win32 = it's for Windows, yay! Including 64-bit Windows. The super-misleading "32" is Microsoft's fault. seh = uses Windows' Structured Exception Handling to implement C++ try-throw-catch. msvcrt = the runtime library, here Microsoft's msvcrt.dll which is bundled with Windows. An alternative is the newer ucrt.dll, where the "u" stands for "universal". I know the former works well, not sure about the latter. As others have mentioned you can/should install the Visual Studio IDE in order to Get "Hello, world!" up and running. Debug things (its got a nice debugger). However, you should better also work in the command line in order to learn about compiling and linking and resources and input redirection and pipes and environment variables and current directory and much more. You can use the Visual C++ compiler from the command line via command cl, I believe at once backwards short for Lattice C, which was the compiler MS once bought and based their compiler on. After installing VS you can find "x64 Native Tools Command Prompt for VS 2022" in the Start menu's apps listing. You can use that to invoke cl, but do consider first installing Windows Terminal and making that your default console environment. Personally I instead use a little batch file to set up the requisite environment variables for Visual C++, like this: @echo off call "%VS-ROOT%\VC\Auxiliary\Build\vcvars64.bat" %* set CL=^ /nologo /utf-8 /EHsc /GR /permissive- /std:c++17 /Zc:__cplusplus /Zc:externC- /W4 /wd4459 ^ /D _CRT_SECURE_NO_WARNINGS=1 /D _STL_SECURE_NO_WARNINGS=1 The corresponding batch file for MinGW g++ is simpler: @echo off set op=%path% set path=c:\root\installed\MinGW\Nuwen 11-2-0\bin;%op% It's generally a good idea to use two different compilers, such as Visual C++ and g++, mainly because when one compiler's diagnostics get completely ungrokable, the other compiler can give at least a hint about what the problem is. Another reason is that compilers differ in their standards-conformance. When some code compiles cleanly with at least two compilers that have been told to be as conforming as possible, you can have better confidence that the code is valid standard C++. More on reddit.com
🌐 r/cpp_questions
76
75
November 6, 2023
Replacing mingw gcc with newer gcc version (Windows 11)
You can use MSYS2. It also comes with package manager and repository that contains many prebuilt open source libraries. More on reddit.com
🌐 r/cpp_questions
30
3
November 4, 2023
implementation of the GNU toolchain for Windows, 32-bit version; see also Mingw-w64
MinGW_installation_manager.webp
MinGW GCC For M68K
MinGW ("Minimalist GNU for Windows"), formerly mingw32, is a free and open source software development environment to create Microsoft Windows applications. MinGW includes a port of the GNU Compiler Collection (GCC), GNU … Wikipedia
Ratings
Factsheet
Original author Colin Peters
Developer MinGW Project
Initial release July 1, 1998; 27 years ago (1998-07-01)
Factsheet
Original author Colin Peters
Developer MinGW Project
Initial release July 1, 1998; 27 years ago (1998-07-01)
🌐
mingw-w64
mingw-w64.org
mingw-w64
A complete runtime environment for GCC & LLVM for 32-bit (x86), 64-bit (x64), and ARM64 Windows
🌐
WinLibs
winlibs.com
WinLibs - GCC+MinGW-w64 compiler for Windows
WinLibs - MinGW-w64 personal build = GCC for Windows 32-bit and 64-bit - Coming soon: the largest collection of open source libraries ported to Windows using MinGW-w64 and MSYS2.
🌐
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 - I learned it the hard way, getting compiler errors while building a Windows program, trying to report a bug to the mingw64 team, then they said that it wasn't their package. ... I also learned it the hard way around 6 months ago this time. ... 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.
🌐
SourceForge
sourceforge.net › projects › mingw
MinGW - Minimalist GNU for Windows download | SourceForge.net
A native Windows port of the GNU Compiler Collection (GCC) MinGW: A native Windows port of the GNU Compiler Collection (GCC), with freely distributable import libraries and header files for building native Windows applications; includes extensions ...
Rating: 4.3 ​ - ​ 223 votes
Find elsewhere
🌐
mingw-w64
mingw-w64.org › downloads
Pre-built Toolchains - mingw-w64
A complete runtime environment for GCC & LLVM for 32-bit (x86), 64-bit (x64), and ARM64 Windows
🌐
Wikipedia
en.wikipedia.org › wiki › MinGW
MinGW - Wikipedia
1 week ago - MinGW ("Minimalist GNU for Windows"), formerly mingw32, is a free and open source software development environment to create Microsoft Windows applications. MinGW includes a port of the GNU Compiler Collection (GCC), GNU Binutils for Windows ...
🌐
UCI ICS
ics.uci.edu › ~pattis › common › handouts › mingweclipse › mingw.html
MinGW C++ Download and Installation Instructions
The following pop-up window will appear. Ensure on the left that Basic Setup is highlighted. Click the three boxes indicated below: mingw32-base, mingw32-gcc=g++, msys-base. After clicking each, select Mark for selection.
🌐
Instructables
instructables.com › design › software
Learn to Install GCC (Mingw-w64) Compiler Tools on Windows 10 Using MSYS2 : 9 Steps - Instructables
November 28, 2022 - Learn to Install GCC (Mingw-w64) Compiler Tools on Windows 10 Using MSYS2: We will learn How to install 64 bit (GCC) GNU Compiler Collection on a Windows 10 system using MSYS2 installer for C/C++ software development. After installing GCC, we will compile a Win32/64 GUI applica…
🌐
Instructables
instructables.com › design › software
How to Install MinGW GCC/G++ Compiler in Windows XP/7/8/8.1/10 : 5 Steps - Instructables
September 19, 2017 - How to Install MinGW GCC/G++ Compiler in Windows XP/7/8/8.1/10: Gcc and G++ are one of the best compilers for C and C++ in all platform. It's is lite, easy to use, and simple. But the packages and installation is not that simple.
🌐
Reddit
reddit.com › r/cpp_questions › what is mingw, why there is a lot of compilers and why this is so confusing?
r/cpp_questions on Reddit: What is MinGW, why there is a lot of compilers and why this is so confusing?
November 6, 2023 -

I am interested in learning to program in C++. I have noticed that it requires a compiler, but there are a lot of options available, which confuses me a little. I have heard about MinGW, but I find it difficult to determine which page to download it from, as there are several options such as winlibs, sourceforge, and mingw-w64.org, and I am not sure which one is the official one. Furthermore, once on the mingw-w64 page, I find that there are multiple versions such as Cygwin, LLVM-MinGW, w64devkit, MingW-W64-builds, MSYS2, and WinLibs.com, which further complicates my decision. I wonder why there isn't a standard official compiler to avoid this confusion and what exactly MinGW is, and how the available compilers such as GCC or Clang differ. I would appreciate any guidance on which one to choose and please excuse my lack of knowledge on the subject.

Top answer
1 of 17
42
MinGW is an effort to port GNU tools, including particularly the gcc compiler suite, to run natively in Windows. There's a lot of history but to get the point, when you see a download like x86_64-13.2.0-release-win32-seh-msvcrt-rt_v11-rev1.7z … the various parts of the name indicate: x86_64 = 64 bit. That's what you want. In contrast, just x86 or i686 means 32-bit. 13.3.0 = version number. I believe that as of this writing that's the latest 'n greatest. release, well who knows. Might mean that this is an official release. Or might be in contrast to a "debug" version. win32 = it's for Windows, yay! Including 64-bit Windows. The super-misleading "32" is Microsoft's fault. seh = uses Windows' Structured Exception Handling to implement C++ try-throw-catch. msvcrt = the runtime library, here Microsoft's msvcrt.dll which is bundled with Windows. An alternative is the newer ucrt.dll, where the "u" stands for "universal". I know the former works well, not sure about the latter. As others have mentioned you can/should install the Visual Studio IDE in order to Get "Hello, world!" up and running. Debug things (its got a nice debugger). However, you should better also work in the command line in order to learn about compiling and linking and resources and input redirection and pipes and environment variables and current directory and much more. You can use the Visual C++ compiler from the command line via command cl, I believe at once backwards short for Lattice C, which was the compiler MS once bought and based their compiler on. After installing VS you can find "x64 Native Tools Command Prompt for VS 2022" in the Start menu's apps listing. You can use that to invoke cl, but do consider first installing Windows Terminal and making that your default console environment. Personally I instead use a little batch file to set up the requisite environment variables for Visual C++, like this: @echo off call "%VS-ROOT%\VC\Auxiliary\Build\vcvars64.bat" %* set CL=^ /nologo /utf-8 /EHsc /GR /permissive- /std:c++17 /Zc:__cplusplus /Zc:externC- /W4 /wd4459 ^ /D _CRT_SECURE_NO_WARNINGS=1 /D _STL_SECURE_NO_WARNINGS=1 The corresponding batch file for MinGW g++ is simpler: @echo off set op=%path% set path=c:\root\installed\MinGW\Nuwen 11-2-0\bin;%op% It's generally a good idea to use two different compilers, such as Visual C++ and g++, mainly because when one compiler's diagnostics get completely ungrokable, the other compiler can give at least a hint about what the problem is. Another reason is that compilers differ in their standards-conformance. When some code compiles cleanly with at least two compilers that have been told to be as conforming as possible, you can have better confidence that the code is valid standard C++.
2 of 17
17
Someone reset the counter. Forget MinGW. Download the free Visual Studio Community Edition (not Code).
🌐
Softonic
mingw.en.softonic.com › home › windows › development & it
MinGW - Download
October 13, 2025 - MinGW, or Minimalist GNU, is the foundational open-source development software that serves as a native port of the GNU Compiler Collection (GCC) for PC. Registered in 2000, this essential utility provides a stable environment for creating and ...
Rating: 6.9/10 ​ - ​ 102 votes
🌐
Medium
algozenith.medium.com › setting-up-mingw-on-windows-763ce317171
Setting up MinGW on Windows. MinGW is a compiler system based on the… | by Algozenith | Medium
February 18, 2022 - Setting up MinGW on Windows MinGW is a compiler system based on the GNU GCC and Binutils projects that compiles and links code to be run on Win32 (Windows) systems. It provides C, C++ and Fortran …
🌐
Softonic
mingw.en.softonic.com › home › windows › development & it › download
Download MinGW - Free - latest version
October 13, 2025 - Download MinGW for Windows now from Softonic: 100% safe and virus free. More than 634 downloads this month. Download MinGW latest version 2026
Rating: 6.9/10 ​ - ​ 102 votes
🌐
GitHub
gist.github.com › jacksonrakena › fd83c781c9175375b8326024ab2964ba
Installing MinGW (GCC C++) and Geany, for ENGR 101 at VUW · GitHub
Go to this website and click either MinGW C/C++ For Windows 11 32/64 bit (for Windows 11) or MinGW C/C++ For Windows 10 32/64 bit (for Windows 10) Do not download the Turbo compiler. Run the downloaded file (mingw.exe). When it asks for a path, enter C:\MinGW.
🌐
Uptodown
mingw-minimalist-gnu-for-windows.en.uptodown.com › development › ide › mingw - minimalist gnu
MinGW - Minimalist GNU for Windows - Download it from Uptodown for free
July 13, 2022 - MinGW - Minimalist GNU is a native Windows port of the GNU Compiler Collection (GCC). With it, you can find various front-ends for languages like C, C++, Fortran, Ada, Go, and D.
🌐
Jmeubank
jmeubank.github.io › tdm-gcc › download
Download | tdm-gcc
tdm-gcc GCC compiler, Windows-friendly. The latest release is based on GCC 10.3.0. MinGW-w64 based · tdm64-gcc-10.3.0-2.exe, 76.6 MB · MinGW.org based · tdm-gcc-10.3.0.exe, 60.2 MB · The easiest way to get TDM-GCC is via an installer. The following links are for TDM-GCC releases since the TDM-GCC 9 series.