Re: g77; compiling my first program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxx - 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/

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux