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)
🌐
SourceForge
sourceforge.net β€Ί projects β€Ί gcc-win64
gcc-win64 download | SourceForge.net
Download gcc-win64 for free. x64 build of GCC for Windows. x64 C/C++ compiler for Windows using (unofficial build): - gmp - mpfr - mpc - isl - cloog - mingw-w64 - gcc - seh You need at least core2 command set support to run this application. Note that every version with bundled gdb needs at ...
🌐
Visual Studio Code
code.visualstudio.com β€Ί docs β€Ί cpp β€Ί config-mingw
Using GCC with MinGW
November 3, 2021 - To install the MinGW-w64 toolchain, check out this video or follow the steps below: You can download the latest installer from the MSYS2 page or use this direct link to the installer.
Discussions

How to run GCC on Windows 11? I installed it (correctly) based on the instructions on MSYS2 and Visual Studio's websites, but it doesn't execute code
As a followup comment, did you add the bin path to your environment path? If so, you'll need to close and reopen VSCode and any other terminals, for that pathing to take effect. More on reddit.com
🌐 r/programminghelp
11
3
February 17, 2022
c - how to update install GCC 11.2 on windows - Stack Overflow
I want to learn C. I have downloaded mingw from sourceforge.net but after installing it I realised that it installed version 6.3.0 of GCC. as I know the latest version of GCC is 11.2. Does anybody... More on stackoverflow.com
🌐 stackoverflow.com
How do I get a GCC?
On which OS? More on reddit.com
🌐 r/C_Programming
31
2
September 1, 2022
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
🌐
SourceForge
sourceforge.net β€Ί projects β€Ί mingw
MinGW - Minimalist GNU for Windows download | SourceForge.net
Download MinGW - Minimalist GNU for Windows for free. 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 ...
Rating: 4.3 ​ - ​ 223 votes
🌐
Host IT Smart
hostitsmart.com β€Ί manage β€Ί knowledgebase β€Ί 435 β€Ί install-gcc-compiler-on-windows.html
How to Install GCC Compiler on Windows?
May 21, 2025 - You need a Windows PC (Windows 10, 11, or earlier versions). The installation steps may differ slightly based on your version of Windows. To install software, you may require administrator privileges. If you are using a personal computer, you likely have the necessary permissions. However, if you are on a work or school computer, you should obtain approval for admin access. A reliable internet connection is necessary to download the GCC compiler and other essential tools (like MinGW-w64).
🌐
WinLibs
winlibs.com
WinLibs - GCC+MinGW-w64 compiler for Windows
Jump to: Download | How to use from Windows Command Prompt | How to use from Code::Blocks | Philosophy | Donate Β· In short: it's a free C and C++ compiler for Microsoft Windows. GCC (GNU Compiler Collection) is a free and open source compiler for C and C++ (and other languages like Objective-C, Fortran, D).
🌐
CodeWithHarry
codewithharry.com β€Ί blogpost β€Ί how-to-install-gnu-gcc-compiler-on-windows
How to install gnu gcc compiler for C Language on Windows | Blog | CodeWithHarry
Learn how to install GCC and g++ compilers on Windows 11 with this step-by-step guide. Ideal for developers, this tutorial covers everything from downloading MinGW to setting up environment variables, enabling seamless C/C++ programming on your PC
Find elsewhere
🌐
PhoenixNAP
phoenixnap.com β€Ί home β€Ί kb β€Ί devops and development β€Ί how to install gcc on windows
How to Install GCC on Windows
September 23, 2024 - This section outlines the steps for installing GCC using minGW-w64. Navigate to the GitHub minGW-w64 page and scroll down to the Assets section. From the list of files, select the one you want to use on your system: We use Windows 11 64-bit ...
🌐
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.
🌐
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.
🌐
Scaler
scaler.com β€Ί home β€Ί topics β€Ί download and install c/gcc compiler for windows
Download and Install C/GCC Compiler for Windows - Scaler Topics
March 20, 2024 - Learn how to set up the C/GCC compiler for Windows. Scaler Topics explains a step-by-step process to download and install the C compiler in Windows.
🌐
YouTube
youtube.com β€Ί tech decode tutorials
How to install MinGW C/C++ Compiler on Windows 11 - GCC G++ Installation Tutorial - YouTube
Run C/C++ program in windows 11 LaptopHey, guys in this video I'm going to show you how you can download and install MinGW C/C++ Compiler on #Windows11 OS an...
Published Β  October 31, 2021
Views Β  119K
🌐
freeCodeCamp
freecodecamp.org β€Ί news β€Ί how-to-install-c-and-cpp-compiler-on-windows
How to Install C and C++ Compilers on Windows
February 22, 2022 - The MinGW compiler is a well known and widely used software for installing GCC and G++ compilers for the C and C++ programming languages. But many devs face difficulties when installing the compiler, so I am going to show you all the steps to do so in this article with screenshots to help you get it done. I will be using Windows 11, but the same process is applicable for all other Windows operating systems unless you are using Windows XP (You need to change some steps in Windows XP).
🌐
Guru99
guru99.com β€Ί home β€Ί c programming β€Ί how to download and install gcc compiler in c for windows pc
How to Download and Install GCC Compiler in C for Windows PC
August 8, 2024 - We will use an open-source Integrated ... GNU), editor and debugger in a neat package. ... Go to https://www.codeblocks.org/downloads/ and click Binary Release....
🌐
Semicolon
semicolon.dev β€Ί windows β€Ί how-to-install-mingw-gcc-g-compiler-windows-10-11-2023
How To Install MinGW W64 64-Bit On Windows 10 or 11 (C/C++/GCC/G++ compilers)
Google is your best friend for finding correct MinGW installation files! Type mingw download and locate this MinGW Source Forge link (usually second link, after the first search result on Google.)
🌐
Reddit
reddit.com β€Ί r/programminghelp β€Ί how to run gcc on windows 11? i installed it (correctly) based on the instructions on msys2 and visual studio's websites, but it doesn't execute code
r/programminghelp on Reddit: How to run GCC on Windows 11? I installed it (correctly) based on the instructions on MSYS2 and Visual Studio's websites, but it doesn't execute code
February 17, 2022 -

Not sure if this counts, since this is more about running code than writing it.

I have followed the instructions on these sites. I have also made sure to change "Path" in the environmental variables. https://code.visualstudio.com/docs/cpp/config-mingw https://www.mingw-w64.org/

The installation worked, but no matter what I try (running in command prompt, running in Visual Studio) I get something like: "'g++' is not recognized as an internal or external command, operable program or batch file." when I try to execute some code. Why is this?

EDIT 1: Visual Studio Code*, not Visual Studio.

EDIT 2: Seems to be working now! I'm the only user on my computer, but I had to change my system variables - not just the user variables - for it to work.

🌐
DigitalOcean
digitalocean.com β€Ί community β€Ί tutorials β€Ί c-compiler-windows-gcc
Install C/GCC Compiler for Windows | DigitalOcean
August 3, 2022 - In other words, CodeBlocks is a free C/C++ IDE that comes with the built-in compiler. Download codeblocks from www.codeblocks.org/downloads/binaries for your respective Operating System. Windows users should choose download file which has β€œmingw” in its name, for example, codeblocks-17...
🌐
Quora
quora.com β€Ί What-is-a-recommended-C-compiler-for-Windows-Can-GCC-be-used-as-a-suitable-option
What is a recommended C++ compiler for Windows? Can GCC be used as a suitable option? - Quora
Answer (1 of 2): It totally depends on how much you intend to get close to the Microsoft Windows operating system. In case you want total adherence to the Windows API, then probably the Visual Studio compiler is your best option, since Microsoft traditionally doesn’t open all the documentation ...
🌐
Softonic
gcc-gnu-compiler-collection.en.softonic.com β€Ί home β€Ί windows β€Ί development & it β€Ί development kits β€Ί gcc gnu compiler collection
GCC GNU Compiler Collection - Download
June 29, 2022 - 11.3K Β· Trusted Program Β· V12.1 Β· Free Download for Windows Β· GCC GNU Compiler Collection is a development tool developed by Free Software Foundation, Inc. As the name suggests, this free application offers a comprehensive compiler system. It comes with in-built frontends and libraries, allowing it to support a wide variety of programming languages.
Rating: 6/10 ​ - ​ 1 votes