I'm trying to link in some legacy Fortran code with a Visual Studio C++ project. I tried using the Windows build of gfortran to build my static library but Visual Studio complains about unresolved external symbols. I guessing this is because mixing mingw and visual studio compilers is a horrible, horrible idea.
I've googled a bit and I see my options are Intel's and Lahey's compilers but both carry a hefty price tag.
Does anyone know of other options, or a different approach I can take?
EDIT IN RESPONSE TO COMMENTS
The error I'm getting is:
Error 7 error LNK2019: unresolved external symbol ___chkstk referenced in function fmm
Googling around led me to this, which just seems like a bad idea.