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: 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 
> 


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