Here are the specific steps needed to install both Microsoft Visual C++ 2010 Express and Microsoft Windows SDK 7.1. Visual C++ 2010 Express is utilized as an example here, although the same steps are broadly applicable to installing Visual C++ 2010 Professional.
For MATLAB 7.12 (R2011a), both Visual C++ 2010 Express and SDK 7.1 must be installed to make a 64-bit compiler available on your computer. For future releases of MATLAB, only the SDK 7.1 is necessary.
*** Prerequisite Information ***
There exist a Windows SDK 7.1 bug that will cause errors during installation or compilation if Microsoft Visual C++ 2010 Express or Professional SP1 (or its redistributable packages) is also present (although it must be SP1 for this bug to surface, if you don't know whether you have SP1 or not, assume that you do).
Details on the bug can be found at:
To avoid this bug:
A. If you don't have either Visual C++ 2010 or SDK 7.1 installed or only have SDK 7.1 installed, follow the order below:
1. Install the SDK 7.1 first, if needed. If this fails, follow the steps in section B below, and then go to step 3 here.
2. Apply the patch from Microsoft below onto the SDK 7.1 installation:
3. Install the Visual C++ 2010 Express.
4. Upgrade Visual C++ 2010 Express to SP1 if needed.
B. If you have Visual C++ 2010 Express SP1 installed already, but not the Windows SDK 7.1:
1. Uninstall the Visual C++ 2010 Redistributable packages, both x64 and x86 versions. This can be done from the Control Panel > Uninstall Programs menu.
2. Install the SDK 7.1. During install of the SDK 7.1, make sure to uncheck 'Visual C++ Compilers' and 'Microsoft Visual C++ 2010' during installation options.
3. Apply the patch from Microsoft below onto the SDK 7.1 installation:
4. Reinstall the Visual C++ 2010 Redistributable packages:
C. If you have both installed already, and running into errors during compilation, apply the patch to the SDK 7.1 installation:
*** Install the Windows SDK 7.1 ***
1. Go to
and download Windows SDK for Windows 7 and .NET Framework 4.
2. When the download is complete, choose to run winsdk_web.exe. Depending on your security settings, you may be prompted by User Account Control (UAC) to confirm “making changes to this computer”.
3. After several seconds, the Setup Wizard will appear.
4. Click through the wizard, accepting the license agreement and not changing any of the installation folders.
ERROR: NOTE: When you get to the “Installation Options” page, if you have Visual C++ 2010 SP1 (Professional or Express) or its redistributable packages already installed, UNCHECK the 'Visual C++ Compilers' and 'Microsoft Visual C++ 2010' options. Otherwise, keep them checked.
5. Continue through the wizard to download and install the SDK. Depending on the speed of your Internet connection, this step will take several minutes to an hour or more.
6. The setup wizard finishes.
7. Apply the SDK 7.1 patch from Microsoft below:
*** Install Visual C++ 2010 Express ***
1. Go to:
Scroll down and find the block for Visual Studio 2010
You may need to create an account in order to get access to the download page. Please search "visual studio 2010 express"
Choose your download language, the system architecture and the installer type. Here is the example of installing Visual Studio 2010 Express with x86 architecture, English language, and EXE installer. Depending on your browser’s security settings, you may be prompted to proceed with the download of vc_web.exe.
2. When the download is complete, choose to run the file vc_web.exe. Depending on your security settings, you may be prompted by User Account Control (UAC) to confirm “mak[ing] changes to this computer”.
3. Click through the installation wizard, accepting the license agreement, and not modifying the installation folder (which defaults to 'C:\Program Files (x86)\Microsoft Visual Studio 10.0'). Note that the list of items to be installed depends on what is already installed on your computer; the exact list of items to install may differ from these screenshots.
4. Depending on the speed of your Internet connection, download will take several minutes to an hour or more.
5. Installation will begin once the download is complete.
6. Midway through installation, you will be prompted to reboot your computer. Do so.
7. Installation will resume at the reboot.
8. Installation will finish.
*** Troubleshooting ***
If you run into installation problems with the SDK, delete the folder %TEMP%\sdksetup and then retry the web setup. Other troubleshooting tips can be found at: