加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c – 发布模式出错,但未出现在构建模式下

发布时间:2020-12-16 10:29:41 所属栏目:百科 来源:网络整理
导读:我最近在visual 2008中使用opencv和c创建了一个项目 当我在调试模式下构建项目时 – 我没有遇到任何问题 – 但是当我在发布模式下构建它时,我得到以下错误: 1test.obj : error LNK2001: unresolved external symbol _cvHaarDetectObjects1test.obj : error
我最近在visual 2008中使用opencv和c创建了一个项目
当我在调试模式下构建项目时 – 我没有遇到任何问题 – 但是当我在发布模式下构建它时,我得到以下错误:

1>test.obj : error LNK2001: unresolved external symbol _cvHaarDetectObjects
1>test.obj : error LNK2001: unresolved external symbol _cvCvtColor
1>test.obj : error LNK2001: unresolved external symbol _cvCreateImage
1>test.obj : error LNK2001: unresolved external symbol _cvDestroyWindow
1>test.obj : error LNK2001: unresolved external symbol _cvWaitKey
1>test.obj : error LNK2001: unresolved external symbol _cvGetSize
1>test.obj : error LNK2001: unresolved external symbol _cvReleaseCapture
1>test.obj : error LNK2001: unresolved external symbol _cvCreateMemStorage
1>test.obj : error LNK2001: unresolved external symbol _cvClone
1>test.obj : error LNK2001: unresolved external symbol _cvNamedWindow
1>test.obj : error LNK2001: unresolved external symbol _cvQueryFrame
1>test.obj : error LNK2001: unresolved external symbol _cvLoad
1>test.obj : error LNK2001: unresolved external symbol _cvRectangle
1>test.obj : error LNK2001: unresolved external symbol _cvCreateCameraCapture
1>test.obj : error LNK2001: unresolved external symbol _cvGetSeqElem
1>test.obj : error LNK2001: unresolved external symbol _cvShowImage

解决方法

检查链接器 – >输入 – >发布配置中的附加依赖关系设置;毫无疑问,你忘了包含OpenCV库.只需从Debug配置中复制粘贴它们,但不要忘记删除d后缀.

例如. cv210.lib:发布模式和cv210d.lib:调试模式.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读