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 or g95. NOTE: Newer versions of Matlab now natively support Mingw, negating the need for this package.
Features
- Compile Matlab mex files using gcc on Windows
- Now compatible with 64 Bit Matlab using Mingw-w64 as well as 32 Bit platforms
- Allows gcc to appear in the list of compilers shown by mex -setup, and easy switching
- C, C++, Fortran 77 or Fortran 95 mex files
Categories
Software DevelopmentLicense
GNU General Public License version 2.0 (GPLv2)Follow gnumex
Other Useful Business Software
AI-powered service management for IT and enterprise teams
Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity. Maximize operational efficiency with refreshingly simple, AI-powered Freshservice.
Rate This Project
Login To Rate This Project
User Reviews
-
Works well for me. Matlab 2015b
-
am using matlab R2013a am trying to compile my sample program but it showing the errors: program is hello.c #include "mex.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { mexPrintf("Hello world!\n"); return; } the error is >> mex hello.cc C:\Users\karna\AppData\Local\Temp\mex_vPTczV\hello.obj:hello.cc:(.text+0x9): undefined reference to `mexPrintf' collect2.exe: error: ld returned 1 exit status link command: g++ -shared C:\Users\karna\AppData\Roaming\MATHWO~1\MATLAB\R2013a\gnumex\mex.def -o hello.mexw64 -LC:\Users\karna\AppData\Roaming\MATHWO~1\MATLAB\R2013a\gnumex -s C:\Users\karna\AppData\Local\Temp\mex_vPTczV\hello.obj -llibmx -llibmex -llibmat C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'hello.mexw64' failed. Error using mex (line 206) Unable to complete successfully. ********************************************* please help me how to fix this error.
-
A must have tool for every scholar.
-
for 64 bit minigw see tracker->bugs->Support Mingw-w64 or mailing list :[Gnumex-users] instructions for getting MinGW_w64 to work (64-bit compilation with OpenMP)