I have installed the supported Microsoft Windows SDK 7.1 compiler on my Windows 10 machine. The machine also has .NET Framework 4.6 installed, but MEX still cannot find a C compiler. I get this error message when typing 'mex -setup':
ERROR: >> mex -setupWarning: Windows SDK 7.1 appears to be installed, but its compiler was not found. Install .NET Framework 4.0, and then rerun the SDK installation to add the "Visual C++ Compilers" component. Seehttps://www.mathworks.com/matlabcentral/answers/100144-why-does-mex-not-find-the-microsoft-windows-sdk-7-1-installed-on-64-bit-windows-in-matlab-7-14-r201for more information.Error using mexNo supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, see https://www.mathworks.com/support/requirements/previous-releases.html
Best Answer