声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1726|回复: 5

[混合编程] matlab中的COM生成器问题

[复制链接]
发表于 2006-5-15 11:50 | 显示全部楼层 |阅读模式

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

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

x
<P>我想将M文件通过COM生成器组件放到VB中应用,但是在生成工程时就出现问题了</P>
<P>Build Status框出现<BR>mcc-M-silentsetup -d 'D:/matlab/word/magicdemo/src'-B'ccom:magicdemo,magicdemo,1.0'-i D:/matlab/word/mymagic.m mbuild is choosing an appropriate compiler...<BR>Modification of non-creatable array value attempted,subscript-1 at D:/matlab/win32/mexsetup.pm line 625</P>
<P>Error Dialog框出现</P>
<P>Error using ==> comtool(build)<BR>Error: An error occurred while shelling out to mbuild(error code=1).<BR>Unable to build executable (specify the -v option for more information).<BR><BR>我用的是6.5  是按书上步骤做的,M文件肯定没问题,为什么还会出现这种情况呢?</P>

[ 本帖最后由 sogooda 于 2008-5-25 20:20 编辑 ]
回复
分享到:

使用道具 举报

 楼主| 发表于 2006-5-16 14:11 | 显示全部楼层
<P>怎么才能生成组件啊?</P>
发表于 2006-6-14 17:26 | 显示全部楼层
我也遇到了这个问题
发表于 2006-6-14 18:02 | 显示全部楼层
我的解决办法是matlab里面运行<BR>mex -setup<BR>选择vc<BR>mbuild -setup<BR>选择vc
发表于 2008-5-25 11:15 | 显示全部楼层
看不懂你说得解决办法
能不能再详细点
发表于 2008-5-25 11:44 | 显示全部楼层


在Matlab的Command Window中输入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] Lcc-win32 C 2.4.1 in D:\PROGRA~1\MATLAB\R2008a\sys\lcc\bin
[2] Microsoft Visual C++ 6.0 in D:\Program Files\Microsoft Visual Studio

[0] None

Compiler:
输入2
出现
Please verify your choices:

Compiler: Microsoft Visual C++ 6.0
Location: D:\Program Files\Microsoft Visual Studio

Are these correct [y]/n?
然后确认路径正确与否就可以啦

评分

1

查看全部评分

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-5-21 00:03 , Processed in 0.053801 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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