undefined reference to `cv::imread(cv::String const&, int)'

記錄一次很詭異的錯誤,因爲粗心,在使用opencv中的cv::imread函數的時候,在CMakeLists.txt中忘記添加庫鏈接html target_link_libraries( opencv_test ${OpenCV_LIBS} ) 編譯出錯函數 CMakeFiles/opencv_test.dir/main.cpp.o: In function `main': main.cpp:(.
相關文章
相關標籤/搜索