Getting x86_64-w64-mingw32-gfortran to compile Fortran source is not difficult. The trick is getting it to link with the C shared libraries (libmx.dll, libmex.dll, libmat.dll). The way compilers export symbols are often very different and there is the added challenge of the C-Fortran difference. Intel Fortran has a Windows configuration (ifortran), so it's not impossible, but Intel designed their compiler to operate with Microsoft-generated libraries. So, the GNU Fortran outputs may be incompatible. It will probably take some experimentation with the gfortran switches.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally posted by: chappjc
Getting
x86_64-w64-mingw32-gfortranto compile Fortran source is not difficult. The trick is getting it to link with the C shared libraries (libmx.dll, libmex.dll, libmat.dll). The way compilers export symbols are often very different and there is the added challenge of the C-Fortran difference. Intel Fortran has a Windows configuration (ifortran), so it's not impossible, but Intel designed their compiler to operate with Microsoft-generated libraries. So, the GNU Fortran outputs may be incompatible. It will probably take some experimentation with the gfortran switches.Originally posted by: chappjc
For my own reference if I decide to tackle this, some resources:
http://geco.mines.edu/guide/ifort.html
https://gcc.gnu.org/onlinedocs/gfortran/Option-Summary.html
https://software.intel.com/sites/default/files/m/f/8/5/8/0/6366-ifort.txt
http://www.clawpack.org/doc/fortran_compilers.html
https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/269060