Operating System - HP-UX
1752708 Members
5737 Online
108789 Solutions
New Discussion

Fortran question: arguments in "main" declaration

 
Jacob Park
Occasional Contributor

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?
1 REPLY 1
Pete Conneely
Advisor

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.