Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
MATLAB 2012a and later do NOT support Visual C++ 2010 Express

Subject: MATLAB 2012a and later do NOT support Visual C++ 2010 Express

From: Mark Mikofski

Date: 29 Aug, 2012 19:04:08

Message: 1 of 9

If you are frustrated because previously you had no problems using Visual C++ 2010 Express (VS2010 Express), and yet suddenly mex -setup doesn't list VS2010 Express anymore, that's because it is NOT supported anymore starting with MATLAB 2012a. Only Windows SDK 7.1 and Visual C++ 2010 Professional are supported, well and a few others as well see here:

http://www.mathworks.com/support/compilers/R2012a/win64.html

http://www.mathworks.com/support/compilers/R2012a/win32.html

To compound the issue, previously on x64 systems VS2010 + Windows SDK 7.1 were required. But if you have updated VS2010 Express to SP1, then your Windows SDK 7.1 compilers will be broken, which is addressed in MS KB 2519277.

http://support.microsoft.com/KB/2519277

There is a fix, Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1, that you can download here:

http://www.microsoft.com/en-us/download/details.aspx?id=4422

Note that the issue with broken Windows SDK 7.1 compilers may also affect users of MATLAB 2011b and earlier in both x86 and x64 versions.

Subject: MATLAB 2012a and later do NOT support Visual C++ 2010 Express

From: Mark Mikofski

Date: 29 Aug, 2012 19:28:07

Message: 2 of 9

"Mark Mikofski" <bwanamarko@yahoo.com> wrote in message <k1lp38$cbb$1@newscl01ah.mathworks.com>...
> If you are frustrated because previously you had no problems using Visual C++ 2010 Express (VS2010 Express), and yet suddenly mex -setup doesn't list VS2010 Express anymore, that's because it is NOT supported anymore starting with MATLAB 2012a. Only Windows SDK 7.1 and Visual C++ 2010 Professional are supported, well and a few others as well see here:
>
> http://www.mathworks.com/support/compilers/R2012a/win64.html
>
> http://www.mathworks.com/support/compilers/R2012a/win32.html
>
> To compound the issue, previously on x64 systems VS2010 + Windows SDK 7.1 were required. But if you have updated VS2010 Express to SP1, then your Windows SDK 7.1 compilers will be broken, which is addressed in MS KB 2519277.
>
> http://support.microsoft.com/KB/2519277
>
> There is a fix, Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1, that you can download here:
>
> http://www.microsoft.com/en-us/download/details.aspx?id=4422
>
> Note that the issue with broken Windows SDK 7.1 compilers may also affect users of MATLAB 2011b and earlier in both x86 and x64 versions.

Also note: that you are not required to install Visual C++ 2010 SP1 update.

Subject: MATLAB 2012a and later do NOT support Visual C++ 2010 Express

From: Mark Mikofski

Date: 29 Aug, 2012 19:52:07

Message: 3 of 9

"Mark Mikofski" <bwanamarko@yahoo.com> wrote in message <k1lp38$cbb$1@newscl01ah.mathworks.com>...
> If you are frustrated because previously you had no problems using Visual C++ 2010 Express (VS2010 Express), and yet suddenly mex -setup doesn't list VS2010 Express anymore, that's because it is NOT supported anymore starting with MATLAB 2012a. Only Windows SDK 7.1 and Visual C++ 2010 Professional are supported, well and a few others as well see here:
>
> http://www.mathworks.com/support/compilers/R2012a/win64.html
>
> http://www.mathworks.com/support/compilers/R2012a/win32.html
>
> To compound the issue, previously on x64 systems VS2010 + Windows SDK 7.1 were required. But if you have updated VS2010 Express to SP1, then your Windows SDK 7.1 compilers will be broken, which is addressed in MS KB 2519277.
>
> http://support.microsoft.com/KB/2519277
>
> There is a fix, Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1, that you can download here:
>
> http://www.microsoft.com/en-us/download/details.aspx?id=4422
>
> Note that the issue with broken Windows SDK 7.1 compilers may also affect users of MATLAB 2011b and earlier in both x86 and x64 versions.

I forgot to include the most frustrating part! It is mainly an issue for Windows x86, because users with x64 will have already installed Windows SDK 7.1 and can follow the procedures above.

Unfortunately there is an issue installing Windows SDK 7.1 when VS 2010 SP1 has ALREADY been installed which is also described in KB 2519277 (see above). The preferred method of installation is (1) Visual C++ 2010 (Express or Professional), (2) Windows SDK 7.1, (3) Visual C++ 2010 SP1, (4) the Visual C++ SP1 Compiler Update for Windows SDK 7.1. If you try to install Windows SDK 7.1 after installing SP1, then you will get a "fatal error" when it attempts to install the C++ compilers. Ugh! The workaround is to uncheck the "C++ compilers" box and rerun the installation. Then after the installation is complete run the Visual C++ SP1 Compiler Update for Windows SDK 7.1.

Subject: MATLAB 2012a and later do NOT support Visual C++ 2010 Express

From: Jan Simon

Date: 30 Aug, 2012 13:05:08

Message: 4 of 9

Dear Mark,

> Unfortunately there is an issue installing Windows SDK 7.1 when VS 2010 SP1 has ALREADY been installed which is also described in KB 2519277 (see above).

I'm deeply astonished that such a highly experienced company as Microsoft is not able to publish important and frequently used compilers without such awkward bugs. I'd feel ashamed to offer such premature stuff on my homepage.

Kind regards, Jan

Subject: MATLAB 2012a and later do NOT support Visual C++ 2010 Express

From: Mark Mikofski

Date: 30 Aug, 2012 16:48:08

Message: 5 of 9

"Jan Simon" wrote in message <k1noe4$dor$1@newscl01ah.mathworks.com>...
> Dear Mark,
>
> > Unfortunately there is an issue installing Windows SDK 7.1 when VS 2010 SP1 has ALREADY been installed which is also described in KB 2519277 (see above).
>
> I'm deeply astonished that such a highly experienced company as Microsoft is not able to publish important and frequently used compilers without such awkward bugs. I'd feel ashamed to offer such premature stuff on my homepage.
>
> Kind regards, Jan

I agree, Jan, but in their defense, Visual C++ 2010 & Windows SDK 7.1 are both over 2.5 yrs old (5/2010), Service Pack 1 for Visual C++ 2010 is also 1.5 years old, and the fix is nearly a year old. It was probably a cost/benefit decision not to go back and replace Windows SDK 7.1 to detect this issue.

I think the real question should be why did *MathWorks* decide to backslide on Visual C++ 2010 Express, and why haven't they published anything to support users who already had Visual C++ Express SP1 and now may have to figure out how to install or patch Window SDK 7.1?

This site:

http://www.mathworks.com/support/compilers/R2012a/win64.html

*only* mentions the Windows SDK 7.1, but it should *also* mention the fix (KB 2519277

http://support.microsoft.com/kb/2519277

which is essentially an update for the C++ compilers from version 10.0.30319 to 10.0.40219. Windows SDK fails because it detects the newer compiler.

MathWorks has this page:

http://www.mathworks.com/support/solutions/en/data/1-ECUGQX/

which explains how to install Visual C++ 2010 Express and Windows SDK 7.1, but it is outdated (linked from the 2011a x64 supported compilers page).

http://www.mathworks.com/support/compilers/R2011a/win64.html

Then this page:

http://www.mathworks.com/support/solutions/en/data/1-FPLDGV/

which also doesn't not mention SP1 or the update.

and finally this page:

http://www.mathworks.com/support/solutions/en/data/1-IB1G3Q/

again no mention of SP1 or the Windows SDK update.

It's as if MathWorks solution is for user to completely uninstall Visual C++ 2010 Express and only use Windows SDK.

Subject: MATLAB 2012a and later do NOT support Visual C++ 2010 Express

From: Ken Atwell

Date: 30 Aug, 2012 20:28:07

Message: 6 of 9

Mark,

Thanks for the feedback. There is a 64-bit-centric MathWorks solution (http://www.mathworks.com/support/solutions/en/data/1-G1P8HP) on this subject, and I posted similar information to MATLAB Answers (http://www.mathworks.com/matlabcentral/answers/5510-unable-to-locate-compiler-mex-error-when-using-visual-c-2010-express-sp1-on-64-bit-windows) when this issue was first discovered. That said, you're right that MathWorks can do a better job of cross-referencing this information and capturing your situation (installing the SDK after SP1); we'll look into doing just this.

You mention that MathWorks “backslid” its support for Visual C++ 2010 Express. This was a conscious decision, done because the SDK has two notable benefits:

* SDK releases traditionally remain available many years after release, a great benefit when you need to stabilize on a release of MATLAB for some time. Express releases have been known to disappear when a new version becomes available.
* The SDK is free and requires no registration. While Visual C++ Express is free, you must register with Microsoft. This raises privacy concerns for some users.

You correctly noted that the change was largely transparent to 64-bit users (who have needed the SDK all along), but it was a change for 32-bit users. The number of MATLAB users still on 32-bit Windows is dwindling, so the number of impacted users is contained – sounds like you are one of them, sorry. We opted for a one-release transition period (R2011b) of supporting either the SDK or Visual C++ Express before fully embracing the SDK only in R2012a.

I hope this clarifies our intentions vis-a-vis the SDK, and I’ll look into more proactively addressing the SP1/SDK issue in our support materials.

Thanks,
KEN ATWELL
Product Manager, MATLAB Platforms
MathWorks

Subject: MATLAB 2012a and later do NOT support Visual C++ 2010 Express

From: Mark Mikofski

Date: 30 Aug, 2012 21:04:07

Message: 7 of 9

"Ken Atwell" wrote in message <k1oicn$r17$1@newscl01ah.mathworks.com>...
> Mark,
>
> Thanks for the feedback. There is a 64-bit-centric MathWorks solution (http://www.mathworks.com/support/solutions/en/data/1-G1P8HP) on this subject, and I posted similar information to MATLAB Answers (http://www.mathworks.com/matlabcentral/answers/5510-unable-to-locate-compiler-mex-error-when-using-visual-c-2010-express-sp1-on-64-bit-windows) when this issue was first discovered. That said, you're right that MathWorks can do a better job of cross-referencing this information and capturing your situation (installing the SDK after SP1); we'll look into doing just this.
>
> You mention that MathWorks “backslid” its support for Visual C++ 2010 Express. This was a conscious decision, done because the SDK has two notable benefits:
>
> * SDK releases traditionally remain available many years after release, a great benefit when you need to stabilize on a release of MATLAB for some time. Express releases have been known to disappear when a new version becomes available.
> * The SDK is free and requires no registration. While Visual C++ Express is free, you must register with Microsoft. This raises privacy concerns for some users.
>
> You correctly noted that the change was largely transparent to 64-bit users (who have needed the SDK all along), but it was a change for 32-bit users. The number of MATLAB users still on 32-bit Windows is dwindling, so the number of impacted users is contained – sounds like you are one of them, sorry. We opted for a one-release transition period (R2011b) of supporting either the SDK or Visual C++ Express before fully embracing the SDK only in R2012a.
>
> I hope this clarifies our intentions vis-a-vis the SDK, and I’ll look into more proactively addressing the SP1/SDK issue in our support materials.
>
> Thanks,
> KEN ATWELL
> Product Manager, MATLAB Platforms
> MathWorks

Hi Ken,
Very nice response. I voted up your Q/A on Answers.
Thanks!
--Mark

Subject: MATLAB 2012a and later do NOT support Visual C++ 2010 Express

From: Mark Mikofski

Date: 17 Dec, 2012 18:43:15

Message: 8 of 9

Unfortunately the woes with Microsoft SDK 7.1 and Microsoft Visual C++ 2010 Express continue. Note that this issue may affect Windows 7 x64 users. Beware, you might run into this error, which is very confusing. The installer quits with the message:

    Installation of the “Microsoft Windows SDK for Windows 7” product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.

Totally useless, but further examination of the log file or Googling around you might see the real source of the error. It's not SP1 (as in the previous post above) but the redistributable that is too new:

    C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation failed with return code 5100.

The solution is to remove the redistributables and then reinstall them later. See this knowledge base article: <http://support.microsoft.com/kb/2717426 Windows SDK Fails to Install with Return Code 5100> (Sorry there is no markup for newsgroup posts so I'm borrowing the Mathworks markup for links here.) Make sure you can find and download the newest redistributables first.

<http://www.microsoft.com/en-us/download/details.aspx?id=13523 Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)>

You can use Windows update to get the latest version after you reinstall this and finish setting up Windows SDK 7.1. Also note that your version may be even newer than this one, however, this one should be newer than the SDK version.

This issue could even effect you if you do not have Visual Studio 2010 Express installed, because the redistributable could have been installed by any application that uses VC2010. You probably already have redistributables for 2005 and 2008 on your machine. See <http://msdn.microsoft.com/en-us/library/vstudio/ms235299 Resdistributing Visual C++ Files>.

Given all of this, I really agree with Jan Simon above, Microsoft really pooped the bed on this one. Bummer for users.

"Mark Mikofski" <bwanamarko@yahoo.com> wrote in message <k1okg7$5jq$1@newscl01ah.mathworks.com>...
> "Ken Atwell" wrote in message <k1oicn$r17$1@newscl01ah.mathworks.com>...
> > Mark,
> >
> > Thanks for the feedback. There is a 64-bit-centric MathWorks solution (http://www.mathworks.com/support/solutions/en/data/1-G1P8HP) on this subject, and I posted similar information to MATLAB Answers (http://www.mathworks.com/matlabcentral/answers/5510-unable-to-locate-compiler-mex-error-when-using-visual-c-2010-express-sp1-on-64-bit-windows) when this issue was first discovered. That said, you're right that MathWorks can do a better job of cross-referencing this information and capturing your situation (installing the SDK after SP1); we'll look into doing just this.
> >
> > You mention that MathWorks “backslid” its support for Visual C++ 2010 Express. This was a conscious decision, done because the SDK has two notable benefits:
> >
> > * SDK releases traditionally remain available many years after release, a great benefit when you need to stabilize on a release of MATLAB for some time. Express releases have been known to disappear when a new version becomes available.
> > * The SDK is free and requires no registration. While Visual C++ Express is free, you must register with Microsoft. This raises privacy concerns for some users.
> >
> > You correctly noted that the change was largely transparent to 64-bit users (who have needed the SDK all along), but it was a change for 32-bit users. The number of MATLAB users still on 32-bit Windows is dwindling, so the number of impacted users is contained – sounds like you are one of them, sorry. We opted for a one-release transition period (R2011b) of supporting either the SDK or Visual C++ Express before fully embracing the SDK only in R2012a.
> >
> > I hope this clarifies our intentions vis-a-vis the SDK, and I’ll look into more proactively addressing the SP1/SDK issue in our support materials.
> >
> > Thanks,
> > KEN ATWELL
> > Product Manager, MATLAB Platforms
> > MathWorks
>
> Hi Ken,
> Very nice response. I voted up your Q/A on Answers.
> Thanks!
> --Mark

Subject: MATLAB 2012a and later do NOT support Visual C++ 2010 Express

From: peppa247@gmail.com

Date: 10 Dec, 2013 15:21:34

Message: 9 of 9

im having the same issue..
but my problems is im using windows 8..
can someone help me on this

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us