提问人:Nimasha Madhushani 提问时间:9/7/2023 最后编辑:Christoph RackwitzNimasha Madhushani 更新时间:9/10/2023 访问量:68
函数 main 中引用LNK2019未解析的外部符号 cvCreateImage
LNK2019 unresolved external symbol cvCreateImage referenced in function main
问:
我尝试在我的 MS VS Codes 2022 社区版本中构建一个代码片段。我配置了使用 OpenCV 中的功能所需的所有东西。但是,我遇到了一系列错误。 我所做的配置如下所述。
Error LNK1120 7 unresolved externals Project1 D:\L4S1\DIP\Labs\Lab2\Project1\x64\Debug\Project1.exe 1
Error LNK2019 unresolved external symbol cvWaitKey referenced in function main Project1 D:\L4S1\DIP\Labs\Lab2\Project1\Project1\Lab1.obj 1
Error LNK2019 unresolved external symbol cvDestroyWindow referenced in function main Project1 D:\L4S1\DIP\Labs\Lab2\Project1\Project1\Lab1.obj 1
Error LNK2019 unresolved external symbol cvShowImage referenced in function main Project1 D:\L4S1\DIP\Labs\Lab2\Project1\Project1\Lab1.obj 1
Error LNK2019 unresolved external symbol cvNamedWindow referenced in function main Project1 D:\L4S1\DIP\Labs\Lab2\Project1\Project1\Lab1.obj 1
Error LNK2019 unresolved external symbol cvLoadImage referenced in function main Project1 D:\L4S1\DIP\Labs\Lab2\Project1\Project1\Lab1.obj 1
Error LNK2019 unresolved external symbol cvReleaseImage referenced in function main Project1 D:\L4S1\DIP\Labs\Lab2\Project1\Project1\Lab1.obj 1
Error LNK2019 unresolved external symbol cvCreateImage referenced in function main Project1 D:\L4S1\DIP\Labs\Lab2\Project1\Project1\Lab1.obj 1
答:
评论
.lib