Open yinxiaomao opened 1 year ago
yolo.cpp:(.text+0x1de0): undefined reference to cv::imread(std::string const&, int)' yolo.cpp:(.text+0x1ed4): undefined reference tocv::imshow(std::string const&, cv::_InputArray const&)' yolo.cpp:(.text+0x1ef4): undefined reference to `cv::waitKey(int)'
cv::imread(std::string const&, int)' yolo.cpp:(.text+0x1ed4): undefined reference to
这是环境配置的问题,估计opencv的版本不对或者就是没装,或者没写进环境变量里。要么就是CMakelist.txt文件没按照自己的环境改。不过话说我这个项目也没给cpp文件啊,咋在这提ISSUE呢
yolo.cpp:(.text+0x1de0): undefined reference to
cv::imread(std::string const&, int)' yolo.cpp:(.text+0x1ed4): undefined reference to
cv::imshow(std::string const&, cv::_InputArray const&)' yolo.cpp:(.text+0x1ef4): undefined reference to `cv::waitKey(int)'