After installing the "MATLAB Support for MinGW-w64 C/C++ Compiler" support package in MATLAB, the command "mex -setup" reports that the compiler is correctly installed.:
>> mex -setupMEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
However, after I restart MATLAB, the same command does not detect the MinGW compiler as installed anymore:
>> mex -setupNo supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; seeInstall MinGW-w64 Compiler. For more options, see http://www.mathworks.com/support/compilers/R2015b/win64.html.
But when I check the Add-On Explorer, or run the command:
>> matlabshared.supportpkg.getInstalled
the MinGW Support Package is still shown as installed. Why does MATLAB not detect the MinGW compiler anymore after a restart of MATLAB?
Best Answer