本来在CentOS下编译还挺正常的,换Ubuntu后我在测试 OpenCV 的时候却发现编译不了:
/tmp/cceUgR20.o:在函数‘main’中:
test.c:(.text+0xb1):对‘cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)’未定义的引用
test.c:(.text+0xc7):对‘cv::_InputArray::_InputArray(