ITS/High Performance Computing Cluster/help on GNU compilers
[edit] Using The GNU Compilers On The ITS HPC Cluster
[edit] Compiling a C or C++ Program
To compile the C source file "test.c" with the GNU C compiler, use the command
cc test.c
To compile the C++ source file "test.cpp" with the GNU C++ compiler, use the command
c++ test.cpp
Note that the GNU compilers use different commands for compiling C and C++ source files.
[edit] Compiling a FORTRAN Program
To compile the FORTRAN 77 source file "test.f" with the GNU FORTRAN 77 compiler, use the command
f77 test.f
Note, there is no Fortran 90 support in the current version (3.2.3) of the GNU Compiler Collection installed. For Fortran 90 code, instead use the Intel or PGI Fortran compilers.
This article is a stub. You can help by adding to it.
| ITS High Performance Cluster Articles | |
|---|---|
| This article is part of the ITS Cluster series of articles | |
| FAQ | Intel compilers | GNU compilers | Portland Group compilers | |
| Intel Math Kernel Library | MINPACK | ScaLAPACK | GSL | FFTW3 | MPICH | NAG | |
| R | Mathematica | NAMD | GROMACS | Amber | MATLAB | |
| FLUENT | GAMESS | Gaussian | MOLCAS | LAMMPS | APBS | |
