I installed Microsoft SDK 7.1 with .NET framework on my machine by doing the steps given in the following solution page.
I also have installed Microsoft Visual C++ 2010 Redistributables prior to the installation of Windows SDK 7.1.
When I execute the below command:
mex -setup
In MATLAB 2014a and later version, after I click the link of Windows SDK 7.1, the error below appears:
ERROR: error using mex (line 206)
In MATLAB 2013b and earlier vesions, the error shows as below:
ERROR: >> mex -setup\n\nWelcome to mex -setup. This utility will help you set up \na default compiler. For a list of supported compilers, see \nhttp://www.mathworks.com/support/compilers/R2013a/win64.html \n\nPlease choose your compiler for building MEX-files: \n\nWould you like mex to locate installed compilers [y]/n? y\n\nSelect a compiler: \n[1] Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files (x86)\Microsoft Visual Studio 10.0 \n\n[0] None \n\nCompiler: 1\n\nPlease verify your choices: \n\nCompiler: Microsoft Software Development Kit (SDK) 7.1 \nLocation: C:\Program Files (x86)\Microsoft Visual Studio 10.0 \n\nAre these correct [y]/n? y***************************************************************************** \n Error: The Microsoft Windows Software Development Kit (SDK) installation is \n incomplete. Please be sure that the .NET Framework is installed \n correctly before attempting to reinstall the SDK. \n***************************************************************************** \n\nError using mex (line 206)\nUnable to complete successfully.
Best Answer
This issue occurs when the Microsoft SDK installation has not gone properly.