🌐
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 ...
Rating: 4.3 ​ - ​ 223 votes
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.
🌐
mingw-w64
mingw-w64.org β€Ί downloads
Pre-built Toolchains - mingw-w64
LLVM-MinGW is a toolchain built with Clang, LLD, libc++, targeting i686, x86_64, arm and aarch64 (ARM64), with releases both for running as a cross compiler from Linux and for running on Windows.
🌐
Visual Studio Code
code.visualstudio.com β€Ί docs β€Ί cpp β€Ί config-mingw
Using GCC with MinGW
November 3, 2021 - 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 ...
🌐
SourceForge
sourceforge.net β€Ί projects β€Ί mingw-w64
MinGW-w64 - for 32 and 64 bit Windows download | SourceForge.net
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.
🌐
Mingw
mingw.org
MinGW – Minimalist GNU for Windows | AnswerHarbor
MinGW, short for Minimalist GNU for Windows, is a development environment designed to bring the power of GNU tools and libraries to the Windows platform. It provides a lightweight, yet functional, set of tools that enable developers to compile ...
🌐
UCI ICS
ics.uci.edu β€Ί ~pattis β€Ί common β€Ί handouts β€Ί mingweclipse β€Ί mingw.html
MinGW C++ Download and Installation Instructions
In this handout you will download the files needed by GNU C++; in the next you will download a version of Eclipse that is already set up to use MinGW.
Find elsewhere
🌐
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.
🌐
Nuwen
nuwen.net β€Ί mingw.html
MinGW Distro - nuwen.net
Using three compilers that conform closely to the Standard subjects your code to more strenuous trials than using a single compiler would. (The easiest way to obtain Clang is via Visual Studio's installer.) MinGW is a port of GCC to Windows. It is free of charge and simple to use (well, as ...
🌐
Turbo
hub.turbo.net β€Ί run β€Ί gnu β€Ί mingw
Run MinGW Online - Turbo.net
Run MinGW online on your browser, Mac, PC, and tablets with Turbo.net. Turbo.net lets you run thousands of apps online on all your devices.
🌐
Ideone
ideone.com β€Ί fork β€Ί gYgaox
Online Compiler and IDE >> C/C++, Java, PHP, Python, Perl and 70+ other compilers and interpreters - Ideone.com
Ideone is something more than a pastebin; it's an online compiler and debugging tool which allows to compile and run code online in more than 40 programming languages.
🌐
MathWorks
mathworks.com β€Ί matlab β€Ί external language interfaces β€Ί c with matlab β€Ί write c functions callable from matlab (mex files)
MinGW-w64 Compiler - MATLAB & Simulink
To install the compiler, use Add-Ons Explorer. On the MATLAB Home tab, in the Environment section, click Add-Ons. Search for MinGW.
🌐
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).
🌐
OnlineGDB
onlinegdb.com β€Ί online_c++_compiler
Online C++ Compiler - online editor
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it.
🌐
Download
mingw.en.download.it β€Ί development software
MinGW - Free Download
MinGW is a free software for Windows ... software online. It was developed by Mingw to offer an open-source development environment for developing Windows-based applications. The software was previously called Mingw32 by the MinGW Project in ...
Rating: 5.5/10 ​ - ​ 53 votes
🌐
SourceForge
sourceforge.net β€Ί home β€Ί open source software β€Ί software development β€Ί compilers β€Ί mingw-w64 - for 32 and 64 bit windows
Download mingw-w64-install.exe (MinGW-w64 - for 32 and 64 bit Windows)
The Code::Blocks Team Β· 155 Reviews Downloads: 68,011 This Week Last Update: 10 hours ago ... MinGW-w64 - for 32 and 64 bit Windows The mingw-w64 project is a complete runtime environment for gcc to support binaries native to Windows 64-bit and 32-bit operating systems.
🌐
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 ...