g77; compiling my first program

Toon Moene toon@moene.indiv.nluug.nl
Fri Sep 24 19:02:00 GMT 2004


Xucaen wrote:

> Hi, I'm taking a class "Principals of Programming
> Languages" and this week we learned Fortran. So,
> I installed g77 (using apt-get) and typed in a
> simple Fortran program.
> 
>        PROGRAM FOR1
>        I = 2
>        PRINT 10, I
> 10     FORMAT (1X, I5)
>        END
> 
> I saved my source file as for1. 

Use for1.f

I'll look at whether this actually is documented (it probably is, 
because files ending in .F get the (C-) preprocessor applied to them first).

Hope this helps,

-- 
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
A maintainer of GNU Fortran 95: http://gcc.gnu.org/fortran/



More information about the Gcc-help mailing list