This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with g77 Fortran
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Rob Willson <rwillson at emerald dot tufts dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 04 Jul 2002 22:01:48 +0200
- Subject: Re: Problem with g77 Fortran
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.OSF.4.32.0207031712440.4686-100000@emerald.tufts.edu>
Rob Willson wrote:
> I have GNU-Fortran installed on my PC LInux system and am having
> problems compiling my old Fortran 77 programs on the new system.
> Specifically, I get an error when I try to read a data file using a
> statements like
>
> open(unit=1,file='datafile.dat', recl=132,status='old')
>
> .
> .
> Read(1,10) x,y,z
> 10 FOrmat(3f10.2)
>
> When I say: f77 -o prog prog.f , I get a statement.." sfe: formatted io
> is not allowed"
The "recl=132" makes the run time library think this is a direct access
file. Removing it will make the program work.
I'll look up whether this is correct behaviour.
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)