compilation and unit nos. in g77
Sun Dec 21 12:40:00 GMT 2003
jayant ogale wrote:
>>I have some programs written in Professional Fortran
>>[Dos Based], in Borland compiler.
>>I want to convert them for G77 [Linux based]
>>compiler. Please let me know the following things.
>>1] what are the default unit numbers for 'Console'
>>and 'Printer' in G77? if there are non then give me
> the syntex to refer to the console and printer in read
> / write statements.
There are no standard ways to address 'Printer' from Fortran (or g77).
Use READ(*, ...) to read from the console and WRITE(*, ...) to write
to it. There probably is some DOS command to have the output to the
console go to the printer.
>>2] I know only one line compilation and linking
>>command as $ g77 filename.for which creates
>>executable file as a.out. But I would like to know
>>the detailed compilation and linking commands with
>>all possible switches. [I could not find them in man
>>or info pages.].
You can read the online manual here:
Hope this helps,
Toon Moene - mailto:email@example.com - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)
More information about the Gcc-help