求助!! 使用MATLAB Com Builder时出现问题
错误提示<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 ==> 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 ==> D:\matlab\toolbox\compiler\mcc.dll<BR><BR>请问各位怎么解决这个问题?<BR>谢谢先!</P> 装VS没有?你设成LCC怎么可能得到cpp的支持??!第三句话就清清楚楚写着“所选择编译器不支持com组件”! 这个问题搞得我郁闷死了,各种编译器我都是过了mcc -setup mex -setup mbuild -setup全部都遍历过了
在网上有人说matlab看不见vs2005必须改装vs6.0
想请问高手怎么让matlab看见vs2005 看一下http://forum.vibunion.com/forum/viewthread.php?tid=29231的回复对你是否有帮助
[ 本帖最后由 eight 于 2007-1-30 22:37 编辑 ]
页:
[1]