I have a Windows DLL came from a FORTRAN code. The DLL is working but I need to change it and port to Linux.
Now I'm trying to wrap it into a Java code using this and trying to compile with gfortran too.
I'm facing an issue like Error: Unclassifiable statement at (1) but searching around I read this error is too generic and related to many things, none of them related to my code (or I think so).
Here is the problematic code:
...
character*2 di,mi
character*4 ai
...
integer*2 dia_ini, mes_ini, ano_ini
...
decode (2, '(i2)', mi ) mes_ini
decode (2, '(i2)', di ) dia_ini
decode (4, '(i4)', ai ) ano_ini
...
All decode lines are giving error at beginning of line (the "1" is pointing below the d of "decode")
One thing I can't understand is `di,mi' and 'ai' are in parameter list too:
Subroutine PREVISAO (di,mi,ai)
Is this allowed on Fortran? Aren't the initial values on parameters lost?
The original files have a .f90 extension and have only subroutine blocks.
.f90extension when not try it, otherwise it sounds a bit like a missing compilation option in your tool-chain. Possible workaround might be to insert 6 spaces at the beginning of each line. - albertencodeanddecodeare not Fortran. - francescalus