Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 其它 > 资料存档
资料存档 资料存档
 
 
主题工具 显示模式
旧 2019-12-10, 20:48   #1
poster
高级会员
 
注册日期: 2019-11-21
帖子: 3,008
声望力: 66
poster 正向着好的方向发展
帖子 设置mex以使用Visual Studio 2010编译器

我已经安装了Visual Studio 2010。但是,MATLAB找不到编译器。

>> mex -setup Please choose your compiler for building external interface (MEX) files: Would you like mex to locate installed compilers [y]/n? y Select a compiler: [0] None Compiler: 如果我对问题回答n ,则得到以下信息

Would you like mex to locate installed compilers [y]/n? n Select a compiler: [1] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [2] Intel C++ 9.1 (with Microsoft Visual C++ 2005 SP1 linker) [3] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [4] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) [5] Intel Visual Fortran 10.1 (with Microsoft Visual C++ 2005 SP1 linker) [6] Microsoft Visual C++ 2005 SP1 [7] Microsoft Visual C++ 2008 Express [8] Microsoft Visual C++ 2008 SP1 [0] None Compiler: 8 The default location for Microsoft Visual C++ 2008 SP1 compilers is C:\Program Files (x86)\Microsoft Visual Studio 9.0, but that directory does not exist on this machine. Use C:\Program Files (x86)\Microsoft Visual Studio 9.0 anyway [y]/n? n Please enter the location of your compiler: [C:\Program Files (x86)\Microsoft Visual Studio 9.0] 编译我的c ++代码以使其可在MATLAB中使用的最简单方法是什么?安装Visual C ++ 2008吗? O



回答:

这取决于您使用的MATLAB版本。 R2010b开箱即用地支持VS2010。如果您有R2010a,则有可用的修补程序:

更多&回答...
poster 当前离线   回复时引用此帖
 


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛禁用 表情符号
论坛启用 [IMG] 代码
论坛启用 HTML 代码



所有时间均为北京时间。现在的时间是 05:08


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.