声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2835|回复: 1

[混合编程] 为啥我的matlab中的mbuild 和 mex设置一直都完不成

[复制链接]
发表于 2007-8-14 17:17 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
使用的是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

[0] None

Compiler: 1

Please verify your choices:

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

Are these correct?([y]/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 [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

[0] None

Compiler: 1

Please verify your choices:

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

Are these correct?([y]/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 编辑 ]
回复
分享到:

使用道具 举报

发表于 2007-8-15 20:36 | 显示全部楼层
原帖由 红茶 于 2007-8-14 17:17 发表
使用的是matlab r2006a,下面是我的设置过程与报错结果,不知道哪不对啊,弄了一天也没弄出个所以来,各位大牛,先谢谢了!
>> mbuild -setup
Please choose your compiler for building standalone MATLAB a ...


没有遇到过,上 mathworks 主页找找解决办法吧。必要时重装一下,无论是 BCB 或是 matlab
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-12-12 07:44 , Processed in 0.051397 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表