This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: gfortran and f77 line continuation
- From: Tobias Burnus <burnus at net-b dot de>
- To: Ewan <e dot towie at elec dot gla dot ac dot uk>
- Cc: fortran at gcc dot gnu dot org
- Date: Tue, 28 Nov 2006 19:15:39 +0100
- Subject: Re: gfortran and f77 line continuation
- References: <456C7475.2090207@elec.gla.ac.uk>
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