首页 > 其他 > 详细

test.cpp:(.text+0xc0): undefined reference to `cv::imread(std::string const&, int)'

时间:2019-02-12 11:40:41      阅读:1155      评论:0      收藏:0      [点我收藏+]

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-config opencv --cflags --libs`

after compiling libraries from source, you need to do finally:

sudo ldconfig

test.cpp:(.text+0xc0): undefined reference to `cv::imread(std::string const&, int)'

原文:https://www.cnblogs.com/sddai/p/10364350.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!