This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gfortran for 77 codes
- From: Bud Davis <bdavis9659 at sbcglobal dot net>
- To: Attila Kocsis <kocsisatis at yahoo dot com>, gcc-help at gcc dot gnu dot org
- Date: Fri, 12 Jan 2007 10:00:21 -0800 (PST)
- Subject: Re: gfortran for 77 codes
variables in format statements are an extension to f77
that is not supported by gfortran or g77.
you can work around this by building a run-time format
string.
HTH,
bud
--- Attila Kocsis <kocsisatis@yahoo.com> wrote:
> Hy!
>
> If I try to compile fortran 77 code with gfortran it
> gives the following error:
>
> In file simplex0d_red_stat.f:299
> Included at ketir_keret_reda.f:1
> 9001 format(i8,<np>e16.8)
> 1
> Error: Unexpected element in format string at (1)
> In file simplex0d_red_stat.f:294
> Included at ketir_keret_reda.f:1
> write(iout,9001)isc,xkiir
> 1
>
> Where np is a parameter.
> What is the problem with format specification?
>
> Thanks,
> Atis
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>