【发布时间】:2012-07-27 19:42:38
【问题描述】:
我有 MATLAB 2010a,我想将我的脚本编译成一个独立的 windows .exe 文件。问题是当我使用mbuild -setup 时,我的Visual Studio 2010 没有选项。我看到有一个MEX 文件的补丁,我安装了这个补丁,但它没有帮助。
>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? n
Select a compiler:
[1] Microsoft Visual C++ 2005 SP1
[2] Microsoft Visual C++ 2008 Express
[3] Microsoft Visual C++ 2008 SP1
[0] None
有什么想法吗?
如果我选择[3],它无论如何都找不到它。我不在乎我使用什么编译器,我只想让它工作。
编辑
如果我在询问Please choose your compiler for building standalone MATLAB applications: 时选择[y],我会得到以下信息:
>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[0] None
Compiler: 0
mbuild: No compiler selected. No action taken.
忍者
【问题讨论】:
-
如果您对搜索已安装编译器的选项回答“y”会发生什么?
-
我在最初的问题中添加了一个编辑。
-
@Shinobii:为了清楚起见,你说的是这里提到的补丁:Setting up mex to use the Visual Studio 2010 compiler
标签: visual-studio-2010 matlab matlab-compiler