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.


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.


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


Added support for 64 bit MATLAB