Hi,
我在运行“示例程序73 创建包围轮廓的矩形边界”的时候,遇到了如下的程序编译错误。所以,请您帮忙看看这些编译问题是否是缺少了什么头文件没有include,还是其他的什么原因?
1、undefined reference to cv::theRNG()' 2、Multiple markers at this line - undefined reference to cv::minAreaRect(cv::InputArray const&)'
- undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)' 3、undefined reference to cv::RotatedRect::points(cv::Point*) const'
4、undefined reference to cv::Mat::operator=(cv::Scalar_<double> const&)' 5、undefined reference to cv::circle(cv::Mat&, cv::Point_, int, cv::Scalar_ const&, int, int, int)'
6、undefined reference to cv::line(cv::Mat&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)' 7、Multiple markers at this line - undefined reference to cv::imshow(std::string const&, cv::_InputArray
const&)'
8、undefined reference to `cv::waitKey(int)'
我已经在程序中include了如下这些头文件:
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
using namespace cv;
using namespace std;
Hi,
我在运行“示例程序73 创建包围轮廓的矩形边界”的时候,遇到了如下的程序编译错误。所以,请您帮忙看看这些编译问题是否是缺少了什么头文件没有include,还是其他的什么原因?
1、undefined reference to
cv::theRNG()' 2、Multiple markers at this line - undefined reference tocv::minAreaRect(cv::InputArray const&)'- undefined reference to
cv::_InputArray::_InputArray(cv::Mat const&)' 3、undefined reference tocv::RotatedRect::points(cv::Point*) const'4、undefined reference to
cv::Mat::operator=(cv::Scalar_<double> const&)' 5、undefined reference tocv::circle(cv::Mat&, cv::Point_, int, cv::Scalar_ const&, int, int, int)'6、undefined reference to
cv::line(cv::Mat&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)' 7、Multiple markers at this line - undefined reference tocv::imshow(std::string const&, cv::_InputArrayconst&)'
8、undefined reference to `cv::waitKey(int)'
我已经在程序中include了如下这些头文件:
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
using namespace cv;
using namespace std;