登录论坛

查看完整版本 : [MATLAB混合编程] mex 和opencv混合编程出现的问题


directive917
2011-05-04, 18:27
mex程序中需要利用opencv的kmeans算法。但是在 mex cpp文件时,出现的问题是:
e:\mexfiles\cxcore.h(47) : error C2470: 'CvImage' : looks like a function definition, but there is no parameter list; skipping apparent body
e:\mexfiles\cxcore.h(211) : error C2470: 'CvMatrix' : looks like a function definition, but there is no parameter list; skipping apparent body
e:\mexfiles\cxcore.h(354) : warning C4099: 'CV_EXPORTS' : type name first seen using 'class' now seen using 'struct'
e:\mexfiles\cxcore.h(47) : see declaration of 'CV_EXPORTS'
e:\mexfiles\cxcore.h(354) : error C2470: 'CvModule' : looks like a function definition, but there is no parameter list; skipping apparent body
e:\mexfiles\cxcore.h(364) : warning C4099: 'CV_EXPORTS' : type name first seen using 'class' now seen using 'struct'
e:\mexfiles\cxcore.h(47) : see declaration of 'CV_EXPORTS'
e:\mexfiles\cxcore.h(364) : error C2470: 'CvType' : looks like a function definition, but there is no parameter list; skipping apparent body
e:\mexfiles\cv.h(59) : fatal error C1083: Cannot open include file: 'cvtypes.h': No such file or directo

请前辈帮忙看下!谢谢!