MATLAB: Mex-setup error: sdk not found!

ccompilerMATLABmexmex compiler

Hi, I am running R2011a with Windows 8(64 bit). I have installed MS visual c++ 2012 express but when i run "mex -setup" on matlab it's reported this message:
Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2011a/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler: [1] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [2] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [3] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) [4] Microsoft Visual C++ 2005 SP1 [5] Microsoft Visual C++ 2008 SP1 [6] Microsoft Visual C++ 2010 [7] Microsoft Visual C++ 2010 Express
[0] None
Compiler: 7
Warning: The default location for Microsoft Visual C++ 2010 Express compiler is: "C:\Program Files\Microsoft Visual Studio 10.0" but either that directory does not exist or the configuration is invalid.
I don't understand why VS 2012 is not in this list and nobody of this compilers works. Can anyone could help me please? I've already seen other relative post, but they were useness because they were for windows 7. Thanks

Best Answer

As the error message and the instructions on the page, you have posted a link to, tell you already: You need to install the SDK 7.1. You can even omit the installation of MSVC 2010, when the SDK is installed properly and you do not use the IDE of MSVC e.g. for debugging, although the page you have linked explains:
Both Microsoft Visual C++ 2010 Express and Windows Software Development Kit (SDK) 7.1 must be installed.
Related Question