I'm trying to compile legacy Fortran code with fort77. The command:
fort77 -c leg_code.f leg_code.o
fails with:
Error on line XXX: syntax error
Line XXX reads:
CHARACTER(LEN=10) TREE(2,MAXF)
where MAXF is defined some lines above with:
INTEGER MAXF, MAXC
PARAMETER (MAXF=400, MAXC=20)
If I remove (LEN=10), the code compiles with no issues.
Anyone know the reason for this error?
gfortranand it worked with no issues. Could either of you turn your comment into an answer so I can accept it? Thank you both!