声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3826|回复: 3

[混合编程] 求助!! 使用MATLAB Com Builder时出现问题

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

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

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

x
错误提示<BR>Building standalone executable...<BR>mcc -M -silentsetup -d 'D:/matlab/work/duandemo/src' -B 'csglcom:duandemo,Tree,1.0' -g -i D:/matlab/work/duan.m <BR>MBUILD.BAT: Error: The chosen compiler does not support building COM objects. <BR>Please see the MATLAB Add-in for Excel documentation for the latest list of supported compilers.
<P>命令窗口<BR>mcc -B sglcpp duan.m<BR>lcc preprocessor error: .\duan.hpp:13 duan.cpp:10 Could not find include file "libmatlb.hpp" <BR>lcc preprocessor error: duan.cpp:11 Could not find include file "libmatlbm.hpp" <BR>lcc preprocessor error: duan.cpp:12 Could not find include file "libmmfile.hpp" <BR>lcc preprocessor warning: duan.cpp:484 EOF inside comment <BR>Error duan.cpp: .\duan.hpp: 16 syntax error; found `_local_function_table_duan' expecting `;' <BR>Error duan.cpp: .\duan.hpp: 18 syntax error; found `duan' expecting `;' <BR>Error duan.cpp: .\duan.hpp: 18 syntax error; found `train_features' expecting `)' <BR>Error duan.cpp: .\duan.hpp: 18 skipping `train_features' `=' `mwArray' `:' `:' `DIN' `,' `mwArray' ... up to `)' <BR>Error duan.cpp: .\duan.hpp: 20 extraneous old-style parameter list <BR>Error duan.cpp: .\duan.hpp: 24 missing parameter type <BR>Error duan.cpp: .\duan.hpp: 24 syntax error; found `*' expecting `)' <BR>Error duan.cpp: .\duan.hpp: 24 skipping `*' `plhs' `[' `]' `,' <BR>Error duan.cpp: .\duan.hpp: 24 syntax error; found `int' expecting `{' <BR>Error duan.cpp: .\duan.hpp: 24 redeclaration of `mxArray' previously declared at .\duan.hpp 24 <BR>Error duan.cpp: .\duan.hpp: 24 syntax error; found `*' expecting `;' <BR>Error duan.cpp: .\duan.hpp: 24 undeclared identifier `prhs' <BR>Error duan.cpp: .\duan.hpp: 24 illegal expression <BR>Error duan.cpp: .\duan.hpp: 24 syntax error; found `)' expecting `]' <BR>Error duan.cpp: .\duan.hpp: 24 skipping `)' <BR>Error duan.cpp: .\duan.hpp: 24 type error: pointer expected <BR>Error duan.cpp: .\duan.hpp: 24 type error: pointer expected <BR>Warning duan.cpp: .\duan.hpp: 24 Statement has no effect <BR>Error duan.cpp: 11 too many errors <BR><BR>MBUILD.BAT: Error: Compile of 'duan.cpp' failed. <BR><BR>??? Error using ==&gt; mbuild<BR>Unable to complete successfully</P>
<P>??? Error: An error occurred while shelling out to mbuild (error code = 1).<BR>Unable to build executable (specify the -v option for more information).</P>
<P>Error in ==&gt; D:\matlab\toolbox\compiler\mcc.dll<BR><BR>请问各位怎么解决这个问题?<BR>谢谢先!</P>
回复
分享到:

使用道具 举报

发表于 2006-6-5 00:57 | 显示全部楼层
装VS没有?你设成LCC怎么可能得到cpp的支持??!第三句话就清清楚楚写着“所选择编译器不支持com组件”!

评分

1

查看全部评分

发表于 2006-10-3 18:49 | 显示全部楼层
这个问题搞得我郁闷死了,各种编译器我都是过了mcc -setup mex -setup mbuild -setup全部都遍历过了
在网上有人说matlab看不见vs2005必须改装vs6.0
想请问高手怎么让matlab看见vs2005
发表于 2006-10-24 19:48 | 显示全部楼层
看一下http://forum.vibunion.com/forum/viewthread.php?tid=29231的回复对你是否有帮助

[ 本帖最后由 eight 于 2007-1-30 22:37 编辑 ]

评分

1

查看全部评分

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

本版积分规则

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

GMT+8, 2024-11-13 22:19 , Processed in 0.074127 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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