🌐
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).
🌐
apponic
gnu-compiler-collection.apponic.com
GNU Compiler Collection Free Download
Windows 7, Windows 8, Windows 10, Windows 11 · System Requirements · No additional system requirements. Visual Studio 2010 Ultimate · Simplifies solution development, lowering risk and increasing return. Free · GNU Compiler Collection · The GNU Compiler Collection includes front ends for C, C++, Objective-C, etc.
Rating: 5 ​ - ​ 2 votes
🌐
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
🌐
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
🌐
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.
🌐
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 › 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 ...
🌐
GitHub
gist.github.com › zpratikpathak › a6d9d8fea0adb98281b24bc0169f392f
Windows 11 (g++) Compiler Installation.md · GitHub
# System-wide installation iwr -useb https://raw.githubusercontent.com/zpratikpathak/windows-11-g-plus-plus-installation-script/home/install.ps1 | iex -Args "-SystemWide" 🔒 Security Note: The one-liner downloads and executes a script from the internet. While convenient, always verify the source and content before running.
Find elsewhere
🌐
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
🌐
Jmeubank
jmeubank.github.io › tdm-gcc › download
Download | tdm-gcc
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.
🌐
Cplusplus
cplusplus.com › forum › windows › 285516
How can I download GCC for windows lates - C++ Forum
I much recommend to install (and update) MinGW/GCC via MSYS2: https://www.msys2.org/ See also: https://docs.epics-controls.org/projects/how-tos/en/latest/getting-started/installation-windows-msys2.html ... Yeah, MSYS2 has a really nice feature, a package manager that makes installing and updating libraries easy. Quite a number of packages are available, in groups. https://packages.msys2.org/groups/ As well as compiler environments available, 32 and 64 bit.
🌐
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).
🌐
FileHippo
filehippo.com › download_gcc-gnu-compiler-collection
Download GCC GNU Compiler Collection 12.1 for Windows - Filehippo.com
April 11, 2025 - Télécharger GCC GNU Compiler Collection · GCC GNU Compiler Collection herunterladen · 下载 GCC GNU Compiler Collection · Scaricare GCC GNU Compiler Collection · Pobierz GCC GNU Compiler Collection · Descargar GCC GNU Compiler Collection ...
Rating: 4.3 ​ - ​ 1 votes
🌐
Admb-project
admb-project.org › tools › gcc
GCC for Windows
Version 4.4.0 of the GNU compiler (C/C++) for Windows.
🌐
SourceForge
sourceforge.net › projects › tdm-gcc
TDM-GCC Compiler download | SourceForge.net
TDM-GCC is now hosted on Github at https://jmeubank.github.io/tdm-gcc/. The most recent stable releases from the GCC compiler project, for 32-bit and 64-bit Windows, cleverly disguised with a real installer & updater.
Rating: 5 ​ - ​ 43 votes
🌐
Reddit
reddit.com › r/cpp_questions › how can i setup the gnu/gcc compiler in the windows environment?
r/cpp_questions on Reddit: How can I setup the GNU/GCC compiler in the Windows environment?
October 3, 2019 -

I apologize for the long post in advanced-- I'm just trying to describe what I've already tried as best as possible in order to better troubleshoot the issue.

I am in an introductory C++ class and we have been using the school computers with all the environments already pre-configured for us. The teacher told us that we can simply download CodeBlocks or XCode for Win/macOS and use the GNU/GCC compiler without any problems. He also stated multiple times that for our curriculum, we would require this compiler specifically instead of something like MSVC, since it better follows traditional C++ standards and allows teachers and students to build any source code on multiple machines.

I installed Codeblocks a little while ago and I'm trying to get my source code running on my home computer now. To my surprise, Codeblocks could not automatically find the compiler on my system after following the default installation (full features). When doing a custom Windows Explorer search for the compiler executable on my entire hard drive, it could not find any trace of the file located on my computer either. Our teacher said that this compiler should be included in the Codeblocks installation, but it looks to me as though didn't install it whatsoever. I also checked to ensure I was downloading the latest version, re-ran the installation as admin, but there was still no trace of the compiler anywhere to be found.

After doing some investigating online, I learned that the GNU compiler is actually not a Windows compiler at all but was mainly developed for Unix based systems first. The compiler that Codeblocks expects is actually "mingw" which is apparently a port of the free GCC compiler from these other platforms.

I found the "mingw installation manager" binary package online, installed it on my system, then proceeded to download and install all the packages under the mingw repositories 'basic setup'. After applying the changes, it installed mingw to a root folder on my C:\\ drive where Codeblocks first expected it, which then allowed me to build/run the basic example script "Hello World" within the IDE. All seemed well now, except there were still some other problems happening...

While trying to build my script I'd previously been working on, one of the namespaces from the <thread> library threw a compiler error. This error did not show up while working on the school's computers, which leads me to believe that I might be missing some additional packages of some sort. If this is the case, then this is going to cause a lot of trouble down the road when trying to build source code that could be using correct syntax but missing some other resource.

To ensure that I am not just crazy, please see this small snip-it to verify the source code:

#include <iostream>
#include <thread>
#include <string>
#include <chrono>

using namespace std;
using namespace std::chrono;
using namespace std::this_thread;

// error: compiler complains that "this_thread" is not a namespace-name

In my global compiler settings within Codeblocks, I have also checked the following box:

Have g++ follow the C++14 ISO C++ language standard [-std=c++14]

Why is the compiler not finding the std::this_thread; namespace? Am I missing a resource? How can I setup up my computer with everything I need using the mingw GNU/GCC compiler?

PS: I am trying to use std::this_thread::sleep_for() from the <thread> library in order pause the program and allow the user to see a displayed message before it is cleared from the standard output in the console.