使用的是matlab r2006a,下面是我的设置过程与报错结果,不知道哪不对啊,弄了一天也没弄出个所以来,各位大牛,先谢谢了!
>> 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] Borland C++Builder version 6.0 in E:\Program Files\Borland\CBuilder6
[2] Lcc C version 2.4.1 in D:\MATLAB\R2006A\sys\lcc
[3] Microsoft Visual C/C++ version 6.0 in D:\Program Files\Microsoft Visual Studio
Trying to update options file: C:\Documents and Settings\Kevin Young\Application Data\MathWorks\MATLAB\R2006a\compopts.bat
From template: D:\MATLAB\R2006A\BIN\win32\mbuildopts\bcc56compp.bat
DllRegisterServer in D:\MATLAB\R2006a\bin\win32\mwcomutil.dll succeeded
Undefined subroutine &mexsetup::expire called at D:\MATLAB\R2006a/bin/mexsetup.pm line 807.
??? Error using ==> mbuild
Unable to complete successfully
>> 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:
[1] Borland C++Builder version 6.0 in E:\Program Files\Borland\CBuilder6
[2] Lcc C version 2.4.1 in D:\MATLAB\R2006A\sys\lcc
[3] Microsoft Visual C/C++ version 6.0 in D:\Program Files\Microsoft Visual Studio
Trying to update options file: C:\Documents and Settings\Kevin Young\Application Data\MathWorks\MATLAB\R2006a\mexopts.bat
From template: D:\MATLAB\R2006A\BIN\win32\mexopts\bcc56opts.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
***************************************************************************
??? Error using ==> mex
Unable to complete successfully