🌐
mingw-w64
mingw-w64.org
mingw-w64
A complete runtime environment for GCC & LLVM for 32-bit (x86), 64-bit (x64), and ARM64 Windows
Source Code
A complete runtime environment for GCC & LLVM for 32-bit (x86), 64-bit (x64), and ARM64 Windows
Pre-built Toolchains
While mingw-w64 provides the core Windows headers and libraries needed for Windows development, it's not very useful on its own. Most users should install a pre-built toolchain that combines mingw-w64 with a compiler (like GCC with binutils, or LLVM/Clang) and other essential build components.
Changelog
Important: UCRT is now the default ... the mingw-w64-doc/howto-build/ucrt-vs-msvcrt.txt document for details. Both header set and CRT must be configured and built with the same settings consistently for proper functionality. Switching runtimes requires all libraries to be rebuilt, including GCC...
Windows / MSYS2 (GCC)
A complete runtime environment for GCC & LLVM for 32-bit (x86), 64-bit (x64), and ARM64 Windows
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)
🌐
Visual Studio Code
code.visualstudio.com › docs › cpp › config-mingw
Using GCC with MinGW
November 3, 2021 - From the dropdown of compilers, select Use gcc.exe to configure. More information can be found in the IntelliSense configuration documentation. Remember, the C++ extension uses the C++ compiler you have installed on your machine to build your program. Make sure you have completed the "Installing the MinGW-w64 toolchain" step before attempting to run and debug helloworld.cpp in VS Code.
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
I am desperately trying to install the latest version of mingw-w64 to get acess to gcc 10 on windows 10. I used the online installer for mingw-w64 in the past, but it is still stuck in 2018 on 8.1... 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
Code::Blocks and MinGW Compiler not working. Cannot build and run code.

Make sure you really installed the gcc. Open your command prompt and enter "gcc --version".

If it does print out the gcc verison, you can use gcc to compile the .c files by entering "gcc your-c-file.c" in your command prompt.

You can check out more here: https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html

More on reddit.com
🌐 r/AskProgramming
2
0
May 5, 2014
🌐
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
🌐
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.
🌐
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
Find elsewhere
🌐
Wikipedia
en.wikipedia.org › wiki › MinGW
MinGW - Wikipedia
1 week ago - MinGW includes a port of the GNU Compiler Collection (GCC), GNU Binutils for Windows (assembler, linker, archive manager), a set of freely distributable Windows specific header files and static import libraries which enable the use of the Windows ...
🌐
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).
🌐
WinLibs
winlibs.com
WinLibs - GCC+MinGW-w64 compiler for Windows
GCC (GNU Compiler Collection) is a free and open source compiler for C and C++ (and other languages like Objective-C, Fortran, D). MinGW-w64 is a free and open source C library for targetting Windows 32-bit and 64-bit platforms. The combination of these results in a free C/C++ compiler for Windows.
🌐
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…
🌐
GitHub
github.com › niXman › mingw-builds-binaries › releases
Releases · niXman/mingw-builds-binaries
Release for GCC-13.2.0 with MinGW-W64 runtime version 11 · MCF thread model was added · Assets 10 · Loading · There was an error while loading. Please reload this page. 85 people reacted · 24 May 13:11 · niXman · 13.1.0-rt_v11-rev1 · ecaa196 · This commit was created on GitHub.com and signed with GitHub’s verified signature.
Author   niXman
🌐
YouTube
youtube.com › watch
How to Install MinGW (GCC/G++) Compiler in Windows 11 - YouTube
How to Install MinGW (GCC/G++) Compiler in Windows 11 Learn how to install MinGW (Minimalist GNU for Windows) compiler on Windows 11 to write and compile C/...
Published   January 1, 2025
🌐
Arch Linux
archlinux.org › packages › extra › x86_64 › mingw-w64-gcc
Arch Linux - mingw-w64-gcc 15.2.0-1 (x86_64)
gcc-libs · glibc · gmp · libisl · libmpc · mingw-w64-binutils · mingw-w64-crt · mingw-w64-headers · mingw-w64-winpthreads · mpfr · python · zlib · zstd · gcc-ada (make) efifs (make) mingw-w64-crt (make) mingw-w64-winpthreads (make) wine (make) wine-staging (make) View the file list for mingw-w64-gcc ·
🌐
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.
🌐
MSYS2
msys2.org
MSYS2
Despite some of these central parts being based on Cygwin, the main focus of MSYS2 is to provide a build environment for native Windows software and the Cygwin-using parts are kept at a minimum. MSYS2 provides up-to-date native builds for GCC, mingw-w64, CPython, CMake, Meson, OpenSSL, FFmpeg, Rust, Ruby, just to name a few.
🌐
Digipen
azrael.digipen.edu › ~mmead › www › public › mingw
Installing MinGW
gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
🌐
Fedora
packages.fedoraproject.org › pkgs › mingw-gcc
mingw-gcc - Fedora Packages
mingw32-gcc - MinGW Windows cross-compiler (GCC) for C for the win32 target · mingw32-gcc-c++ - MinGW Windows cross-compiler for C++ for the win32 target · mingw32-gcc-gfortran - MinGW Windows cross-compiler for FORTRAN for the win32 target · mingw32-gcc-objc++ - MinGW Windows cross-compiler ...
🌐
Qt Wiki
wiki.qt.io › MinGW
MinGW - Qt Wiki
January 16, 2025 - MinGW is a free and open source Windows port of the GCC compiler and related tools. Qt supports MinGW as a platform on Windows in addition to Visual Studio compiler by Microsoft. However, it can also be used as a cross-compiler e.g.
🌐
Microsoft Learn
learn.microsoft.com › en-us › vcpkg › users › platforms › mingw
Mingw-w64 | Microsoft Learn
Many Linux distributions offer such toolchains in optional packages with a mingw-w64 suffix or prefix. As an example, for Debian-based distributions, you would start with this installation command for the x64 toolchain: sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
🌐
GNU
gcc.gnu.org
GCC, the GNU Compiler Collection - GNU Project
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Objective-C++, Fortran, Ada, Go, D, Modula-2, COBOL, Rust, and Algol 68 as well as libraries for these languages (libstdc++,...). GCC was originally written as the compiler for the GNU operating system.