Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 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 当前离线   回复时引用此帖
回复


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



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


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