-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to resolve "undefined reference" issues? #6
Comments
#include "opencv2/highgui/highgui.hpp" int main()
} |
你没有链接静态库吧 |
Hi,请问如何“链接静态库”?有示例的命令吗? |
我不知道你是不是用的VS 实测不加上就会出现和你一样的报错情况,加了就好了 |
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::_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;
The text was updated successfully, but these errors were encountered: