The entire GNU compiler suite is available, with the usual invocations, gcc, g++, and gfortran.


Category:  Compiler


Availability: Open access for all academic and industry users

 


Usage Notes


The GNU compilers are in the default path.

Show the version using the command:  gcc -v

 

Example of compiling hello-world with the GNU C compiler:



 [cdc@rush:~]$ vi hello-world.c

 

#include <stdio.h>

int main() {
   printf("Hello world!\n");
}

 

[cdc@rush:~]$ gcc -o hello-gnu hello-world.c
[cdc@rush:~]$ ./hello-gnu
Hello world!