Gnumex is a package that allows Matlab mex and engine files written in C, C++, Fortran 77 or Fortran 95 to be compiled with MinGW (or Cygwin) MS Windows versions of gcc, gfortran, g77 or g95. Here are some of the features in gnumex:

Recent News

This is a short abbreviated list of the changes that were introduced in recent versions.  See the "changes.txt" log packaged in the latest download.

2019-August-19

Gnumex is currently thoroughly outdated. However, Matlab has been offering support for the MinGW C compiler since version R2015b, and it is possible to call Fortran from C. There is some discussion and an example in a new post on the Gnumex discussion page.

2015-July-2

With new changes to Matlab (and possibly also MinGW-w64) gnumex is yet again out of date it seems. However, I came across a solution on stackoverflow (scroll to 1st answer, with heading mingw_mexopts.bat) that allowed me to mex with MinGW-w64. The solution bypasses gnumex by providing an options file that seems to work. I have just posted my version of the file to the gnumex mailing list. Kristjan.

2014-March-22

The website was overhauled and documentation updated. More is needed but it is an improvement.

2013-Sept-06

Added support for 64 bit MATLAB