Re: Fortran question: arguments in "main" declaration (172 Views)
Occasional Contributor
Jacob Park
Posts: 5
Registered: ‎09-05-2000
Message 1 of 2 (172 Views)

Fortran question: arguments in "main" declaration

I recently received a fortrn source file which has arguments in "main" declaration. i.e. program main (arg1, arg2, arg3,etc) I didn't know if this was possible with fortran (pecularity of HP fortran?). When I tried to compile the source file with out any options on my machine, "error" message was given. What the option,if any, to make this declaration of argument in "main" work?
Pete Conneely
Posts: 18
Registered: ‎06-27-2000
Message 2 of 2 (172 Views)

Re: Fortran question: arguments in "main" declaration

Fortran 77 or 90 ?
What was the error message ?
Simple example of program, not sure from your description what is being done.

Take a look at URL:

gives access to Fortran reference manuals.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.