Skip to main content
Print

GNU/GCC COMPILERS

GNU Compilers help create C, C++ and Fortran applications. You can use these to build and run your own project code. You can run module spider gcc to get a list of available versions. Note that different versions may have different software stack built with them

The system GNU distribution is located in the default areas: /usr/bin, /usr/lib or /usr/lib64 for libraries, /usr/include for headers, etc. After loading the modules using

module load gnu

the user should not need to do anything else than to invoke the compiler by its name, e.g.:

gcc source.c -o executable
gfortran source.f -o executable

More documentation on the GNU compilers can be found at the GCC site.

Table of Contents