Re: Fortran question: arguments in "main" declaration (157 Views)
Reply
Occasional Contributor
Jacob Park
Posts: 5
Registered: ‎09-05-2000
Message 1 of 2 (157 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?
Advisor
Pete Conneely
Posts: 18
Registered: ‎06-27-2000
Message 2 of 2 (157 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:
http://www.docs.hp.com/hpux/development/

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.