我有 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]
,它无论如何都找不到它。我不在乎我使用什么编译器,我只想让它工作。
编辑
如果我[y]
在询问时选择Please choose your compiler for building standalone MATLAB applications:
,我会得到以下信息:
>> 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.
忍者