This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with g77 Fortran


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]