Matlab missing compiler error

Matlab requires C/C++/Fortran compilers for numerous operations such as mex, loadlibrary and more. Matlab R2015b enabled MinGW GNU compilers for Windows, a big advance since they’re small, easy to use and Free. However, if Matlab doesn’t detect your compiler location, you may get an error like

Error in loadlibrary>getLoadLibraryCompilerConfiguration

Which can be fixed by telling Matlab your compiler path via Windows environment variable MW_MINGW_LOC by typing in Matlab (assuming you installed your compiler under c:\gcc:


Leave a Comment