|
|
|||
![]() |
Department of Engineering |
| University of Cambridge > Engineering Department > computing help |
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