Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Fortran question: arguments in "main" declaration

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 REPLIES
Highlighted

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.