未定义引用`cv :: Stitcher :: createDefault(bool)' [英] undefined reference to `cv::Stitcher::createDefault(bool)'

查看:1134
本文介绍了未定义引用`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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆