opencv报错: test.cpp:(.text+0xc0): undefined reference to `cv::imread(std::string const&, int)' test.cpp:(.text+0x11f): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)' This is a linker issue. Try: g++ -o test_1 test_1.cpp ` pkg-con…
Ubuntu下编译一个C++文件,C++源程序中使用了opencv,opencv的安装没有问题,但是在编译的过程中出现如下错误: undefined reference to `cv::imread(std::string const&, int)'undefined reference to `cv::noArray()'undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'undefined reference…