I am working with MATLAB 7.14 (R2012a) 64-bit. I need to setup a compiler configuration for MATLAB on my system.
When I try to execute the following MATLAB command:
I receive the following error:
No supported SDK or compiler was found on this computer. For a list of supported compilers, see <http://www.mathworks.com/support/compilers/R2012a/win64.html>
If I try to install Microsoft Windows SDK 7.1, a supported compiler for MATLAB 7.14 (R2012a), on my system, the installation fails with the following error message:
This is an issue with Microsoft Windows SDK 7.1. It may occur under two scenarios:
1. If you have Microsoft Visual C++ 2010 SP1 (Express or Professional) installed.
2. If you have Microsoft Visual C++ 2010 redistributable packages (x64 or x86) installed.
The details on the issue from Microsoft are below:
To avoid this issue:
1. Uninstall the Microsoft Visual C++ 2010 redistributable packages (both x86 as well as x64) from “Control Panel” > “Programs and Features”. If you have trouble uninstalling them, see related solution 1-NBI41W at the bottom.
2. Install the Windows SDK 7.1. During installation, under the "Installation Options" menu, UNCHECK the "Visual C++ Compilers" and "Microsoft Visual C++ 2010" components.
3. Apply the SDK 7.1 patch from below:
4. Reinstall the Microsoft Visual C++ 2010 redistributable packages.
I would like to repeat the comment of Gary Day out here, because it saved the day for me:
I stumbled across a way to install SDK 7.1 without having to uninstall the later 2010 Redistributables!
First dip into the installer Setup\WinSDKRedist_amd64 folder and install WinSDKRedist_amd64.msi (I am on 64bit Win7 but hopefully this will work for 32bit as well)
Then launch the main setup.exe. The installer now recognises part of the SDK is installed and skips the check for later 2010 redistributables and you can select change option and add the remaining items you want installed.
Had the same problem. Followed instructions and completed installation. Did have 'repair' the C++ 2010 packages twice; a notice 'installation failed' popped up after the 1st time for each package. Thanks. Note to MW: would be nice if the installer could take care of this in the future.
Had the same problem, followed the above procedure and it worked, after spending a whole day digging other solutions elsewhere. Why such a simple task should be so overly complicated?
I had the same problem. After searching for possible solutions the whole day! finally I got the answer here. Thanks So Much
Faced the same problem as mentioned in the question and the given solution works perfectly ! Many thanks !
In 64bit windows 8 and Matlab R2014a, By installing "Microsoft Visual Studio Ultimate 2013 with update 3", it solved. After installation, the "mex -setup" answer is:
>> mex -setup
MEX configured to use 'Microsoft Visual C++ 2013 Professional (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different language, select one from the following:
mex -setup C++ mex -setup FORTRAN