我尝试在我的 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