我在选择编译器时遇到了一些mex设置方面的问题。我曾尝试安装windows SDK 7.1,但每次都失败。根据THIS论坛的说法,这是因为我安装了visual studio 10.0 (我确实安装了)。所以理想情况下,我应该能够用这个编译器设置mex。但是当我尝试的时候,我得到了以下错误:
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/R2012a/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++ 12.0 (with Microsoft Software Development Kit (SDK) linker)
...
[14] Microsoft Visual C++ 2010
[0] None
Compiler: 14
Warning: The default location for Microsoft Visual C++ 2010 compiler is:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0"
but either that directory does not exist or the configuration
is invalid.
*****************************************************************************
Error: Microsoft Visual C++ 2010 requires the Microsoft Windows Software
Development Kit (SDK), but the SDK cannot be found. Examine your
Microsoft Visual C++ 2010 installation.
*****************************************************************************
Error using mex (line 206)
Unable to complete successfully.所以很明显我确实需要SDK?我已经试过几次从微软卸载SDK 7.1,但都没有成功。
我想,也许我需要手动将mex深入到visual studio文件系统中,以便找到编译器,你有什么想法吗?
我使用的是Windows764位和matlab R2012a。
谢谢你的帮助。
发布于 2016-11-17 22:22:09
我不知道这样做的原因,但这就是我怎么做对的。
https://stackoverflow.com/questions/16891901
复制相似问题