The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C, Fortran, Ada, Go, and D, 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, free in the sense that it respects the user's freedom.
Information
- Source: https://gcc.gnu.org/index.html
- License: GPL, GFDL
- Path: various
- Documentation: https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/
Using GCC
There are various versions installed on each of the Linux platforms. The default GCC is version 4.8.x, which is fairly old, but the basis for pretty much all RedHat packages. In addition, there are various developer toolsets and installations on maxwell. Though anaconda also provides GCCs, it is advisable not to use these:
[elx]% xwhich g++ Local path for g++: /usr/bin/g++ Provides by module(s) ... module load maxwell elastix; which g++: /software/anaconda3/5.2/bin/g++ ... module load maxwell gcc/8.2; which g++: /software/gcc/8.2/bin/g++ ... module load maxwell gcc/6.3; which g++: /software/gcc/6.3/bin/g++ ... module load maxwell anaconda3/5.2; which g++: /software/anaconda3/5.2/bin/g++ ... module load anaconda/3; which g++: /software/anaconda3/5.2/bin/g++ ... module load anaconda3/5.2; which g++: /software/anaconda3/5.2/bin/g++ Documentation: https://confluence.desy.de/display/IS/GCC URL: https://gcc.gnu.org/ Manual: https://gcc.gnu.org/onlinedocs/ License: GPL [elx]$ g++ --version g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36) Copyright (C) 2015 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. [elx]$ module load maxwell gcc [elx]$ gcc --version gcc (GCC) 8.2.0
Using Developer Toolsets
in addition to module based setups, RedHat also provides developer toolsets with up-to-date gnu compilers. See the page on developer toolsets for more information.