GNU Compiler Collection 3.4.6

Date of last revision: 09/02/2007

GCC is the Gnu Compiler Collection. It contains compilers for C, C++, and Fortran.

GNU Compiler Collection 3.4.6 help index:


Availability


Conflicts


Preparation

Unix

The gcc commands are normally accessible without any setup. However, if the workstation you are on has a different version of gcc installed, or for some other reason cannot find gcc, you will have to perform setup actions.

GNU Compiler Collection 3.4.6 uses standard setup scripts. You must type

setup gcc

to use this application. If you want to run this version of the software even if other versions are available, use gcc-3.4.6 instead of gcc in your setup statement.

See "helpme setup" for information on finding out what versions are available or what to do if the setup statement does not work.

Windows NT

You must enter these lines in any DOS window you wish to use gcc in.

path=%path%;g:\djgpp\bin
set djgpp=g:\djgpp\djgpp.env


Running GNU Compiler Collection 3.4.6

To compile C code, type:

gcc -o <executable-name> <source-code-filename>

For C++, use g++ instead of gcc; for Fortran, use g77.


Notes


Other Information Resources


Other Topics of Interest