I have a numeric code that I need to convert to C or C ++. I tried using f2c, but it will not work with Fortran code. f2c complains because the code uses C-style preprocessor directives (#include). The readme code states that it is Fortran77, which works with the fort77 linker, which will extend them.
Does anyone know how to successfully convert this code?
My last resort is to write a simple preprocessor to extend these inclusions, and then submit the code to f2c.
Note. I work in a Windows / Visual C ++ environment here, so any gcc-shenanigans will probably have more problems than they are worth it ...
source share