您的位置 首页 编程语言

出现错误【UNRESOLVED EXTERNAL SYMBOL】解决方法

出现错误【UNRESOLVED EXTERNAL SYMBOL】解决方法

 

解决方法:
[Project-> Setting]-> [Link-> Object/Library modules]加入cxcore.lib cv.lib wsock32.lib(你的链接库)

 

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)

解决如下:
Menu:Project->Settings,选择右边的link标签,在Object/library modules附加上 cxcore.lib cv.lib ml.lib cvaux.lib highgui.lib cvcam.lib,然后确定,重新编译、链接即可!

猫叔总结了 适合新手操作的副业 《淘宝虚拟产品月入2万的 6个 细分类目》的电子书 仅供参考

如果你对虚拟产品比较感兴趣,可以点击:

淘宝卖什么虚拟产品赚钱(月入2万+)

hadoopall

关于花猫大叔短视频创业 作者: hadoopall

热门文章

发表评论

电子邮件地址不会被公开。