今天想用Matlab R2013a编译个mex程序,结果由于64位版不自带C++编译器,导致编译失败。由于平时不在这台电脑上写程序,故没有装VS,就想下个免费的Windows SDK 7.1装了了事,结果安装的时候碰到如下问题:
安装程序报错:
A problem occurred while installing selected Windows SDK components.
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.
Google之:
发现原因主要是由于Document Explorer安装不成功而导致的。按照第一个链接里边的解决方法做了一遍,结果一点用都没有……于是继续Google:
第二个链接里提到:
"Had a similar problem which turned out to be that the SDK 7.1 does NOT install if you have a newer vcredist_x86.exe than version 10.0.30319 of Visual C++ 2010 x86 Redistributable... I had 10.0.30419 installed... removed it through control panel "remove programs" and then the SDK 7.1 installed."
删除Visual C++ 2010 x86 Redistributable所有比10.0.30319新的安装包,再装Windows SDK,终于成功了。