Free / Open Source Windows Fortran Compiler compatible with Visual Studio

I am trying to link some old Fortran code to a Visual Studio C ++ project. I tried using the gfortran Windows build to create my static library, but Visual Studio complains about unresolved external characters. I guess this is due to the fact that mixing mingw and visual studio compilers is a terrible, terrible idea.

I searched a little Google and see that my parameters are Intel and Lahey's , but they carry a hefty price tag.

Does anyone know of other options or another approach that I can take?

EDIT RESPONSE TO COMMENTS

The error I am getting is:

Error 7 error LNK2019: unresolved external symbol ___chkstk in fmm function

The search around led me to this , which just seems bad.

+5
source share
1 answer

You can go through the old school route and use f2cto convert your old Fortran to standard K & RC, which you must build using the MSFT toolchain.

I have not used f2cin many moons and remember that it was a little picky and pain for work. Since g77later ones gfortanbecame much better, less and less needed to be used.

, . Wikipedia f2c f2c sources at Netlib.

: , ++, , f2c.

+2

All Articles