Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Languages and Scripting
Showing results for 
Search instead for 
Did you mean: 

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?

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.