Hi, The command: $ aptitude install fort77 would install an f77 command on Ubuntu/Debian Linux. In fact that's a wrapper for f2c, but maybe it behaves like a real f77 compiler, I would give it a try personnally.
On 03/06/2013 06:48 PM, vellieux wrote:
Hello, For those who still know the Fortran language and its Fortran 77 variant, I used to have a g77 compiler here (Linux box), and now on the new box it's no longer g77 but gfortran. When compiling Fortran77 code (these are the flags used for compilation: -o ../bin/$1 -std=legacy -Wno-globals -w -O3 -malign-double -funroll-loops -ffast-math -fno-second-underscore $1.f , followed by the libraries on that same compile line) I get errors (at run time) of the type: At line 138 of file program.f (unit = 6, file = 'stdout') Fortran runtime error: Missing initial left parenthesis in format When looking at this code (which compiled perfectly well using g77 - I removed the flag "-fno-globals" which doesn't seem to exist any more in gfortran) the Fortran code that I see appears to have all parentheses in the correct places. Any idea of what must be done with existing Fortran 77 code in order to get it to compile and run with gfortran ? Otherwise any idea which compiler should be used to compile Fortran 77 code ? Thanks in advance, Fred.
