I have a project of roughly 38k lines of Fortran that currently builds as a Win32 dll in GFortran. I am working on getting it to build in FTN95, and I don't really know much about Fortran.
The main problem I'm having right now that I haven't had much luck in finding a solution for is these enums, coded like this:
ENUM, BIND(C)
ENUMERATOR :: SeaSI = 1
ENUMERATOR :: SeaField = 2
ENUMERATOR :: SeaSeapp = 3
ENUMERATOR :: SeaYaws = 4
ENUMERATOR :: SeaDippr = 5
ENUMERATOR :: SeaBritish = 6
ENUMERATOR :: SeaPureSI = 7
ENUMERATOR :: SeaHysys = 8
END ENUM
It builds as-is in GFortran, but building in FTN95 gives me an error message on the first line, saying 'The '::' separator is missing'.
I tried looking up Fortran syntax, and found this, which seems to suggest that the first line should be followed by a :: type_alias_name. I tried changing it to:
ENUM, BIND(C) :: SEATYPE
And FTN95 says Syntax Error on that line. I tried a few other variations of the same idea, and keep getting Syntax Errors. I haven't been able to find any documentation on what FTN95 expects Enums to look like, so I'm not really sure what to do now. Can anyone point me in the right direction for getting FTN95 to accept these enums?