首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Matlab的mex设置

Matlab的mex设置
EN

Stack Overflow用户
提问于 2013-06-03 15:27:47
回答 1查看 5.3K关注 0票数 0

我在选择编译器时遇到了一些mex设置方面的问题。我曾尝试安装windows SDK 7.1,但每次都失败。根据THIS论坛的说法,这是因为我安装了visual studio 10.0 (我确实安装了)。所以理想情况下,我应该能够用这个编译器设置mex。但是当我尝试的时候,我得到了以下错误:

代码语言:javascript
复制
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。

谢谢你的帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-11-17 22:22:09

我不知道这样做的原因,但这就是我怎么做对的。

  1. 从您的computer.
  2. Install Microsoft Visual C++ 2010Service Pack1编译器更新中卸载所有版本的Microsoft Visual C++ Redistributable for the Windows SDK7.1,从此处:https://www.microsoft.com/en-in/download/details.aspx?id=4422
  3. Try mex -setup again。
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16891901

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档