Compiling f77 program with gfortran but not successful
Thomas Koenig
tkoenig@netcologne.de
Mon Feb 20 17:35:00 GMT 2012
Am 20.02.2012 16:40, schrieb Muhammad Dogar:
> Dear Sir,
>
> I am trying to read following text data using gfortran compiler with
> the DEC FORTRAN script given at the very end,
Terminlogy: This is a program, not a script.
> but it gives me errors
In such cases, it is always necessary to include the exact
error messages. From the program, it is possible to guess
at a few things.
> (although program/script is totally fine).
Uh, it is not.
RECORDTYPE="STREAM" is not standard Fortran. I can only guess at
its meaning, maybe ACCESS="STREAM" is what you want.
If you are reading the full text file, like
>
> Year Month Stid Lat Lon Rainfall
> 1980 1 QQQ 34.3 -85.5 123.3
it will fail on the first read. You need to skip the
header.
Please note that this is list is for development of gfortran,
not for general Fortran questions (although we like to help).
The Usenet newsgroup comp.lang.fortran is more appropriate.
Regards
Thomas
More information about the Fortran
mailing list