主题: [MATLAB混合编程] mex 和opencv混合编程出现的问题
查看单个帖子
旧 2011-05-04, 18:27   #1
directive917
初级会员
 
注册日期: 2010-09-02
年龄: 38
帖子: 4
声望力: 0
directive917 正向着好的方向发展
默认 mex 和opencv混合编程出现的问题

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

请前辈帮忙看下!谢谢!
directive917 当前离线   回复时引用此帖