OpenCV CVUI报错LINK2019解决办法

1、Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol “void __cdecl cvui::init(class std::basic_string const &,int,bool)” (?init@cvui@@YAXAEBV? b a s i c s t r i n g @ D U ? basic_string@DU? basicstring@DU?char_traits@D@std@@V?$allocator@D@2@@std@@H_N@Z) referenced in function main

2、Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol “bool __cdecl cvui::button(class cv::Mat &,int,int,class std::basic_string const &)” (?button@cvui@@YA_NAEAVMat@cv@@HHAEBV? b a s i c s t r i n g @ D U ? basic_string@DU? basicstring@DU?char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function main DotMatrix

3、Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol “void __cdecl cvui::printf(class cv::Mat &,int,int,double,unsigned int,char const *,…)” (?printf@cvui@@YAXAEAVMat@cv@@HHNIPEBDZZ) referenced in function main

4、Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol “void __cdecl cvui::update(class std::basic_string const &)” (?update@cvui@@YAXAEBV? b a s i c s t r i n g @ D U ? basic_string@DU? basicstring@DU?char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function main DotMatrix

.cpp代码前添加如下代码:

#define CVUI_IMPLEMENTATION
#include "cvui.h"

OpenCV CVUI报错LINK2019解决办法_第1张图片

你可能感兴趣的:(OpenCV,opencv,c++,人工智能)