红茶 发表于 2007-8-14 17:17

为啥我的matlab中的mbuild 和 mex设置一直都完不成

使用的是matlab r2006a,下面是我的设置过程与报错结果,不知道哪不对啊,弄了一天也没弄出个所以来,各位大牛,先谢谢了!
>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:

Would you like mbuild to locate installed compilers /n? y

Select a compiler:
Borland C++Builder version 6.0 in E:\Program Files\Borland\CBuilder6
Lcc C version 2.4.1 in D:\MATLAB\R2006A\sys\lcc
Microsoft Visual C/C++ version 6.0 in D:\Program Files\Microsoft Visual Studio

None

Compiler: 1

Please verify your choices:

Compiler: Borland C++Builder 6.0
Location: E:\Program Files\Borland\CBuilder6

Are these correct?(/n): y

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

Done . . .


--> ""D:\MATLAB\R2006a\bin\win32\mwregsvr" "D:\MATLAB\R2006a\bin\win32\mwcomutil.dll""

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 /n? y

Select a compiler:
Borland C++Builder version 6.0 in E:\Program Files\Borland\CBuilder6
Lcc C version 2.4.1 in D:\MATLAB\R2006A\sys\lcc
Microsoft Visual C/C++ version 6.0 in D:\Program Files\Microsoft Visual Studio

None

Compiler: 1

Please verify your choices:

Compiler: Borland C++Builder 6.0
Location: E:\Program Files\Borland\CBuilder6

Are these correct?(/n): y

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

[ 本帖最后由 eight 于 2007-8-15 20:36 编辑 ]

eight 发表于 2007-8-15 20:36

原帖由 红茶 于 2007-8-14 17:17 发表 http://www.chinavib.com/forum/images/common/back.gif
使用的是matlab r2006a,下面是我的设置过程与报错结果,不知道哪不对啊,弄了一天也没弄出个所以来,各位大牛,先谢谢了!
>> mbuild -setup
Please choose your compiler for building standalone MATLAB a ...

没有遇到过,上 mathworks 主页找找解决办法吧。必要时重装一下,无论是 BCB 或是 matlab
页: [1]
查看完整版本: 为啥我的matlab中的mbuild 和 mex设置一直都完不成