GNU Compiler Collection – Fermi

Introduction

The GNU Compiler Collection (usually shortened to GCC) is a compiler system produced by the GNU Project supporting various programming languages. GCC has been adopted as the standard compiler by most modern Unix-like computer operating systems with GNU/Linux. GCC has been ported to a wide variety of processor architectures, and is widely deployed as a tool in commercial, proprietary and closed source software development environments.

Vendor : GNU Compiler Collection.

Architecture : x86_64

Release : 4.1.2

Language :

The standard compiler includes front end for programming languages C, C++, Java and Fortran. The compilation commands for each of the languages are as follows:

1. C – (gcc) ,

2. C++ – (g++) ,

3. Java – (gcj) and

4. Fortran (gfortran) .

Environmental Setup

Bash Shell

Add the following lines in your .bashrc

export PATH=$PATH:/usr/bin
LIBRARY_PATH=$PATH:/usr/lib64:/usr/lib/gcc/x86_64-redhat-linux/4.1.2:/lib64:/lib
export LIBRARY_PATH
INCLUDE_PATH=$PATH:/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include
export INCLUDE_PATH

Run the command source ~/.bashrc

C Shell

Add the following lines in your .cshrc

set PATH = ($PATH /usr/bin)
LIBRARY_PATH = ($PATH :/usr/lib64 /usr/lib/gcc/x86_64-redhat-linux/4.1.2 /lib64/lib)
set LIBRARY_PATH
INCLUDE_PATH = ($PATH= ($PATH /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include)
set INCLUDE_PATH

Run the command source~/.cshrc

Documentation

1. GCC C/C++ Compiler

2. GCC Fortran

Report Problems to:

If you encounter any problem in using this software please report to SERC helpdesk at the following email address helpdesk.serc@iisc.ac.in or contact System Administrators at room #109 (SERC)