选择其他编译器时exe文件无法生成
>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? mbuild -setup
Select a compiler:
[1] Lcc C version 2.4.1 in D:\PROGRAM FILES\MATLAB71\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio
Are these correct?([y]/n):
Try to update options file: C:\Documents and Settings\kka\Application Data\MathWorks\MATLAB\R14SP3\compopts.bat
From template: D:\PROGRAM FILES\MATLAB71\BIN\win32\mbuildopts\msvc60compp.bat
Done . . .
--> ""D:\Program Files\MATLAB71\bin\win32\mwregsvr" "D:\Program Files\MATLAB71\bin\win32\mwcomutil.dll""
DllRegisterServer in D:\Program Files\MATLAB71\bin\win32\mwcomutil.dll succeeded
--> ""D:\Program Files\MATLAB71\bin\win32\mwregsvr" "D:\Program Files\MATLAB71\bin\win32\mwcommgr.dll""
DllRegisterServer in D:\Program Files\MATLAB71\bin\win32\mwcommgr.dll succeeded
>> mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? mex -setup
Select a compiler:
[1] Digital Visual Fortran version 6.0 in C:\Program Files\Microsoft Visual Studio
[2] Lcc C version 2.4.1 in D:\PROGRAM FILES\MATLAB71\sys\lcc
[3] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[4] Open WATCOM C/C++ version 1.3 in d:\watcom-1.3
[0] None
Compiler: 3
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio
Are these correct?([y]/n):
Try to update options file: C:\Documents and Settings\kka\Application Data\MathWorks\MATLAB\R14SP3\mexopts.bat
From template: D:\PROGRAM FILES\MATLAB71\BIN\win32\mexopts\msvc60opts.bat
Done . . .
***************************************************************************
Warning: The file extension of 32-bit Windows MEX-files was changed
from ".dll" to ".mexw32" in MATLAB 7.1 (R14SP3). The generated
MEX-file will not be found by MATLAB versions prior to 7.1.
Use the -output option with the ".dll" file extension to
generate a MEX-file that can be called in previous versions.
For more information see:
MATLAB 7.1 Release Notes, New File Extension for MEX-Files on Windows
***************************************************************************
>> mcc -m main yundongfenxi result donghua result_db myfun
Could not find the compiler "cl" on the DOS path.
Use mbuild -setup to configure your environment properly.
D:\PROGRAM FILES\MATLAB71\BIN\WIN32\\..\MEX.PL: Error: Unable to locate compiler.
[本帖最后由 kakankang 于 2009-6-2 16:57 编辑]