zoukankan      html  css  js  c++  java
  • OpenCv error :unresolved external symbol(链接库没有加上)

    Error 如下:
    Linking...
    : error LNK2001: unresolved external symbol _cvDestroyWindow
    : error LNK2001: unresolved external symbol _cvLoadImage
    : error LNK2001: unresolved external symbol _cvReleaseCapture
    : error LNK2001: unresolved external symbol _cvReleaseImage
    : error LNK2001: unresolved external symbol _cvWaitKey
    : error LNK2001: unresolved external symbol _cvFlip
    : error LNK2001: unresolved external symbol _cvCopy
    : error LNK2001: unresolved external symbol _cvCreateImage
    : error LNK2001: unresolved external symbol _cvRetrieveFrame
    : error LNK2001: unresolved external symbol _cvGrabFrame
    : error LNK2001: unresolved external symbol _cvNamedWindow
    : error LNK2001: unresolved external symbol _cvCreateFileCapture
    : error LNK2001: unresolved external symbol _cvCreateCameraCapture
    : error LNK2001: unresolved external symbol _cvCreateMemStorage
    : error LNK2001: unresolved external symbol _cvLoad
    : error LNK2001: unresolved external symbol _cvShowImage
    : error LNK2001: unresolved external symbol _cvCircle
    : error LNK2001: unresolved external symbol _cvGetSeqElem
    : error LNK2001: unresolved external symbol _cvGetTickFrequency
    : error LNK2001: unresolved external symbol _cvHaarDetectObjects
    : error LNK2001: unresolved external symbol _cvGetTickCount
    : error LNK2001: unresolved external symbol _cvClearMemStorage
    : error LNK2001: unresolved external symbol _cvEqualizeHist
    : error LNK2001: unresolved external symbol _cvResize
    : error LNK2001: unresolved external symbol _cvCvtColor
    : fatal error LNK1120: 25 unresolved externals
    Error executing link.exe.
    - 26 error(s), 0 warning(s)
     
    Solution如下: 
    Menu:Project->Settings,选择右边的link标签,在Object/library modules附加上 cxcore.lib cv.lib ml.lib cvaux.lib highgui.lib cvcam.lib,然后确定,重新编译、链接即可!

    From:http://blog.csdn.net/abcjennifer/article/details/7562719

  • 相关阅读:
    iOS开发之swift与OC混编出现的坑,oc中不能对swift的代理进行调用,不能访问swift中的代理,swift中的回调方法
    Apple开发者账号更改公司名称
    iOS端实现节日换肤
    那些惊艳了我的第三方插件收集
    【iOS】Mapkit的使用:地图显示、定位、大头针、气泡等
    iOS 10中如何搭建一个语音转文字框架
    哈夫曼树
    多叉树的建立以及其他的一些操作
    决策树(2)
    决策树算法(1)含java源代码
  • 原文地址:https://www.cnblogs.com/asmer-stone/p/3995617.html
Copyright © 2011-2022 走看看