gfortran and f77 line continuation
Tobias Burnus
burnus@net-b.de
Tue Nov 28 18:22:00 GMT 2006
Hi Ewan,
Ewan wrote:
> My problem now is that I cannot get my Fortran77 code to compile
> properly as the gfortran compiler seems to no longer accept the f77
> method of line continuation.
It does so automatically if you use the ".f" file extension or the
-ffixed-form option.
> I have tried using [...] the f77 method of placing a character in
> column 6,
This should work. If I use the following program, it works:
--------------
program
* test
print
+ *,
& 'Hello ',
3 'world!'
end program
--------------
Unfortunally, your example is too brief to be testable; in any case, the
"1" and "2" are in the wrong column (5 instead of 6).
Could you provide a longer example and the exact error message you get?
Regards,
Tobias
More information about the Fortran
mailing list