未定义引用`cv :: Stitcher :: createDefault(bool)' [英] undefined reference to `cv::Stitcher::createDefault(bool)'
问题描述
我正在尝试使用c++
中的opencv
缝合图像,并且在编译程序时,它的抛出错误为
I am trying to stitch images using opencv
in c++
, and when the program is compiled, its throwing errors for
Stitcher stitcher = Stitcher::createDefault();
对`cv :: Stitcher :: createDefault(bool)'的未定义引用
undefined reference to `cv::Stitcher::createDefault(bool)'
和
Stitcher::Status status = stitcher.stitch(vImg, rImg);
对`cv :: Stitcher :: stitch(cv :: _ InputArray const& ;, cv :: _ OutputArray const&)'的未定义引用
undefined reference to `cv::Stitcher::stitch(cv::_InputArray const&, cv::_OutputArray const&)'
请帮助我解决此错误.谢谢.
Please help me in fixing this error.Thanks in advance.
推荐答案
此错误表明编译器对这些函数具有声明,但没有定义.尝试检查链接器标志.
This error indicates the compiler has a declaration for these functions but not a definition. Try checking your linker flags.
这篇关于未定义引用`cv :: Stitcher :: createDefault(bool)'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!