🌐
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.
Installing GCC
The latest version of this document is always available at https://gcc.gnu.org/install/. It refers to the current development sources, instructions for specific released versions are included with the sources Β· This document describes the generic installation procedure for GCC as well as detailing ...
GCC mirror sites
Our releases are available on the GNU download server and its mirrors Β· In addition the following sites mirror gcc.gnu.org (Phoenix, Arizona, USA) directly, and should also carry our snapshots:
GCC Releases
Important: these are source releases, so will be of little use if you do not already have a C++ compiler installed. As one option, there are pre-compiled binaries.
Downloading GCC
The source distribution includes the Ada, C, C++, Objective-C, COBOL (GCC 15 and later), D (GCC 9 and later), Fortran, Go, Modula-2 (GCC 13 and later) and Algol 68 (GCC 16 and later, experimental) compilers, as well as runtime libraries for C++, Objective-C, COBOL, Fortran and Algol 68.
optimizing compiler produced by the GNU Project, key component of the GNU tool-chain and standard compiler for most projects related to GNU and the Linux kernel.
GCC_10.2_GNU_Compiler_Collection_self-compilation.png
gcc 11 1 0 compiling chicken screenshot
The GNU Compiler Collection (GCC) (formerly GNU C Compiler) is a collection of compilers from the GNU Project that support various programming languages, hardware architectures, and operating systems. The Free Software Foundation … Wikipedia
Factsheet
Original author Richard Stallman
Developer GNU Project
Initial release March 22, 1987; 38 years ago (1987-03-22)
Factsheet
Original author Richard Stallman
Developer GNU Project
Initial release March 22, 1987; 38 years ago (1987-03-22)
🌐
Ohio Supercomputer Center
osc.edu β€Ί resources β€Ί available_software β€Ί software_list β€Ί gnu_compilers
GNU Compilers | Ohio Supercomputer Center
July 29, 2025 - Fortran, C and C++ compilers produced by the GNU Project. Availability and Restrictions Versions The GNU Compiler Collection (GCC) are available on all our clusters. These are the versions currently available: Version Pitzer Ascend Cardinal Notes 11.4.1 X# X# X# 12.3.0 X X X* 13.2.0 X X X * Current Default Version # System version ** There is always some version of the GNU compilers in the environment.
🌐
Tamu
hprc.tamu.edu β€Ί kb β€Ί Software β€Ί GNU-Compiler-Collection
GNU Compiler Collection (GCC) - Texas A&M HPRC
This loads binutils as well as the compilers, since it is required to produce executables if any external libraries are to be linked. The GCCcore module is required for other modules such as the Intel compiler modules to work correctly.
🌐
NASA HECC
nas.nasa.gov β€Ί hecc β€Ί support β€Ί kb β€Ί gnu-compiler-collection_87.html
GNU Compiler Collection - HECC Knowledge Base
Computing power to answer NASA's complex science and engineering questions Β· The GNU Compiler Collection (GCC) is an integrated distribution of compilers for several major programming languages, which currently include C, C++, Objective-C, Objective-C++, Java, Fortran, and Ada
🌐
Juan Cruz Viotti
jviotti.com β€Ί notes β€Ί gcc.html
GNU Compiler Collection
This macro will enable the C library extensions even when compiling with the -ansi option. See https://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html. A static library is a collection of precompiled object files that may be copied into the final executable using static linking.
Find elsewhere
🌐
sourcehut
sr.ht β€Ί ~sourceware β€Ί gcc
gcc: GNU Compiler Collection
This directory contains the GNU Compiler Collection (GCC). The GNU Compiler Collection is free software. See the files whose names start with COPYING for copying permission. The manuals, and some of the runtime libraries, are under different terms; see the individual source files for details.
🌐
GNU
gnu.org β€Ί software β€Ί gcc
GCC, the GNU Compiler Collection - GNU Project
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, Go, D, Modula-2, and COBOL as well as libraries for these languages (libstdc++,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, ...
🌐
GitHub
github.com β€Ί gcc-mirror β€Ί gcc
GitHub - gcc-mirror/gcc
This directory contains the GNU Compiler Collection (GCC). The GNU Compiler Collection is free software. See the files whose names start with COPYING for copying permission. The manuals, and some of the runtime libraries, are under different terms; see the individual source files for details.
Starred by 10.7K users
Forked by 4.7K users
Languages Β  C++ 30.1% | C 29.3% | Ada 14.0% | D 5.9% | Go 5.3% | HTML 3.6%
🌐
ITU Online
ituonline.com β€Ί itu online β€Ί tech terms definitions β€Ί what is gnu compiler collection (gcc)?
What Is GNU Compiler Collection (GCC)? - ITU Online IT Training
April 2, 2024 - The GNU Compiler Collection (GCC) is a comprehensive suite of free software compilers for various programming languages, including C, C++, Objective-C,
🌐
apponic
gnu-compiler-collection.apponic.com
GNU Compiler Collection Free Download
GNU Compiler Collection Free Download - The GNU Compiler Collection includes front ends for C, C++, Objective-C, etc.
Rating: 5 ​ - ​ 2 votes
🌐
Reddit
reddit.com β€Ί r/c_programming β€Ί gcc, the gnu compiler collection 15.1 released
r/C_Programming on Reddit: GCC, the GNU Compiler Collection 15.1 released
April 25, 2025 -

https://gcc.gnu.org/gcc-15/

Some discussion on hackernews: https://news.ycombinator.com/item?id=43792248

Awhile back, there was some discussion of code like this:

char a[3] = "123";

which results in a an array of 3 chars with no terminating NUL byte, and no warning from the compiler about this (was not able to find that discussion or I would have linked it). This new version of gcc does have a warning for that. https://gcc.gnu.org/pipermail/gcc-patches/2024-June/656014.html And that warning and attempts to fix code triggering it have caused a little bit of drama on the linux kernel mailing list: https://news.ycombinator.com/item?id=43790855

🌐
Wikipedia
en.wikipedia.org β€Ί wiki β€Ί GNU_Compiler_Collection
GNU Compiler Collection - Wikipedia
3 weeks ago - The GNU Compiler Collection (GCC) (formerly GNU C Compiler) is a collection of compilers from the GNU Project that support various programming languages, hardware architectures, and operating systems.
🌐
GNU
gcc.gnu.org β€Ί install β€Ί download.html
Downloading GCC - GNU Project
The source distribution includes the Ada, C, C++, Objective-C, COBOL (GCC 15 and later), D (GCC 9 and later), Fortran, Go, Modula-2 (GCC 13 and later) and Algol 68 (GCC 16 and later, experimental) compilers, as well as runtime libraries for C++, Objective-C, COBOL, Fortran and Algol 68.
🌐
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.

🌐
Hku
hpc.hku.hk β€Ί home β€Ί high performance computing β€Ί hpc software and programming tools β€Ί gnu compilers
GNU Compilers – Research Computing, HKU ITS
GNU Compiler Collection official page: https://gcc.gnu.org/ GCC Online documentation: https://gcc.gnu.org/onlinedocs/
🌐
Ucartz Online Pvt Ltd
ucartz.com β€Ί clients β€Ί knowledgebase β€Ί 2370 β€Ί What-Is-GNU-Compiler-Collection-Or-GCC.html
What Is GNU Compiler Collection Or GCC? - Ucartz
GCC is a feature-rich compiler toolset where different options are given for various cases. GCC benefits are used to change the default compile properties. Noted some of the popular GCC compiler options here. -c option organizes source files into object files without linking. -Dname=value provides preprocessor macro to the collection process.