我在matlab中已实现了一个gui(response.m和response.gif),想转换成独立执行的exe程序。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:
[1] Lcc C version 2.4.1 in C:\USERS\USER\MATLAB\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 1
Please verify your choices:
Compiler: Lcc C 2.4.1
Location: C:\USERS\USER\MATLAB\sys\lcc
Are these correct?([y]/n): y
Try to update options file: C:\Users\user\Application Data\MathWorks\MATLAB\R14SP3\compopts.bat
From template: C:\USERS\USER\MATLAB\BIN\win32\mbuildopts\lcccompp.bat
Done . . .
--> ""C:\Users\user\matlab\bin\win32\mwregsvr" "C:\Users\user\matlab\bin\win32\mwcomutil.dll""
DllRegisterServer in C:\Users\user\matlab\bin\win32\mwcomutil.dll succeeded
--> ""C:\Users\user\matlab\bin\win32\mwregsvr" "C:\Users\user\matlab\bin\win32\mwcommgr.dll""
DllRegisterServer in C:\Users\user\matlab\bin\win32\mwcommgr.dll succeeded
当我再运行 mcc -m response ,会运行一段时间,得到response.ctf,但最终提示错误:
Error: File "response" is a script M-file and cannot be compiled with the current Compiler.
??? Error executing mcc, return status = 1.
问题出在哪里呢?请高手指点赐教,不胜感激涕零。