eonzhang 发表于 2006-4-11 11:57

[求助]mcc编译问题

我使用mcc编译dll文件出现问题:<BR>mcc -t -W libhg:test -T link:lib -h libmmfile.mlib xbspro.m;<BR>我使用了matlab的一维离散小波分解swt<BR>编译时,出现下列问题:<BR>---------------------------------------<BR>Warning: File: dwtmode Line: 76 Column: 28<BR>"dwt_default_Attrb" has not been defined prior to use on this line.<BR>Warning: File: c:\matlab6p5\toolbox\wavelet\wavelet\dwtmode.m Line: 75 Column: 31<BR>This load statement referred to variable "-mat" that was not referenced in the function.<BR>Warning: File: c:\matlab6p5\toolbox\wavelet\wavelet\dwtmode.m Line: 106 Column: 19<BR>The "which" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\wavelet\wavelet\wfilters.m Line: 50 Column: 17<BR>This load statement referred to variable "-mat" that was not referenced in the function.<BR>Warning: File: c:\matlab6p5\toolbox\wavelet\wavelet\wtbxmngr.m Line: 82 Column: 15<BR>The "which" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\wavelet\wavelet\wtbxmngr.m Line: 97 Column: 28<BR>This load statement referred to variable "-mat" that was not referenced in the function.<BR>Warning: File: c:\matlab6p5\toolbox\wavelet\wavelet\wtbxmngr.m Line: 128 Column: 32<BR>The "what" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\wavelet\wavelet\wtbxmngr.m Line: 144 Column: 11<BR>The "which" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\wavelet\wavelet\wtbxmngr.m Line: 155 Column: 11<BR>The "which" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\path.m Line: 32 Column: 7<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\path.m Line: 41 Column: 5<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\path.m Line: 48 Column: 10<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\path.m Line: 55 Column: 25<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\path.m Line: 57 Column: 25<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\path.m Line: 112 Column: 9<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\path.m Line: 114 Column: 9<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\path.m Line: 116 Column: 9<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\path.m Line: 121 Column: 20<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\rmpath.m Line: 23 Column: 14<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>Warning: File: c:\matlab6p5\toolbox\matlab\general\rmpath.m Line: 78 Column: 1<BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR>---------------------------------------<BR>请我该如何解决!!

happy 发表于 2006-4-11 21:41

回复:(eonzhang)[求助]mcc编译问题

<DIV class=quote><B>以下是引用<I>eonzhang</I>在2006-4-11 11:57:55的发言:</B><BR>The "matlabpath" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.<BR></DIV>
<P>这一类所错误是因为VC好像对类似于(i,:)这样的符号,改为1这样的具体数字后又可以运行下去</P>

happy 发表于 2006-4-11 21:42

回复:(eonzhang)[求助]mcc编译问题

个人感觉从matlab转化还不如直接用c来写代码来的划算
页: [1]
查看完整版本: [求助]mcc编译问题