Open syntax error

Paul W Campbell pwc@u.washington.edu
Thu Jun 5 22:05:00 GMT 2008


I need to get a legacy application to compile in fortran but
I am stuck on the following syntax error. I have not modified
anything (except I aliased f77 to gfortran ).



$ make
f77 -g -C  -c -o dirt.o dirt.f
  In file dirt.f:44

       open(*,form='print')
           1
Error: Syntax error in OPEN statement at (1)
make: *** [dirt.o] Error 1

I understand that g77 does not support FORM='PRINT' and I have looked
at asa. I expect that I could use asa after the program runs.
But how do I modify this statement to compile. I tried  form='formatted'.

I would prefer not to change the * for a unit number because that 
means I will probably need to change a lot of code.




More information about the Fortran mailing list