MATLAB: How to rectify the Error using mex No supported compiler or SDK was found. For options, visit http://www​.mathworks​.com/suppo​rt/compile​rs/R2015a/​win64.html​.

c compilers for mex file generation in matlab

I am using Matlab 2015a in Windows 10. I have installed c compiler for generating the mex file but till now the error occurs. what type of compilers can be installed. please do help me with the compilers.

Best Answer

If you are using 64 bit MATLAB, then none of the compilers supported for R2015a are supported under Windows 10. You just might be able to get SDK 7.1 to install on Windows 10, with some effort; see https://social.msdn.microsoft.com/Forums/sqlserver/en-US/1de7c9b4-1feb-4c98-b426-f7f02cbafa99/windows-sdk-71-on-windows-10?forum=windowssdk
The Microsoft VS compilers and Intel compilers listed are not supported for Windows 10.
For 32 bit MATLAB, possibly you could use lcc-32, but it would not at all surprise me if that turns out to depend upon a redistributable that cannot be installed on Windows 10. (I have not tried it myself.)
My understanding is that the Microsoft approved way of handling all of this is to downgrade to Windows 7, install SDK 7.1 or VS 2013 Professional, then upgrade to Windows 8 (that should keep the .NET 4.0 framework), then upgrade to Windows 10 (that should keep the .NET 4.0 framework.) But there are also work-arounds if you merely downgrade to Windows 8, uninstall .NET 4.5, install .NET 4.0, install .NET 4.5, then upgrade to Windows 10.