Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help

Using gFortran (Fortran 95) on the Teaching System

Users needing fortran 95 on the Teaching system should use the Gnu Fortran Compiler

The compiler is called gfortran. More information about the language can be found at the Gnu Fortran page.

Compiler basics are similar to the other compilers:

gfortran -c triangle.f90 (Compiles the program triangle.f90)

gfortran  -o triangle triangle.o (produces the executable file triangle)

./triangle (runs the program)

 Welcome, please enter the lengths of the 3 sides.
3, 4, 5
 Triangle's area:  6.0

[University of Cambridge] [Engineering Department] [Computing Help]

Last updated: 20 February 2008
Arul Britto