MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB混合编程] mex 和opencv混合编程出现的问题 (https://www.labfans.com/bbs/showthread.php?t=13311)

directive917 2011-05-04 18:27

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

请前辈帮忙看下!谢谢!


所有时间均为北京时间。现在的时间是 12:13

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.