Error while using OpenCv
Hi!
I just installed opencv on fedora 17. I downloaded the following sample program from the official site to confirm my installation. sample program - http://code.opencv.org/svn/opencv/tr...pp/drawing.cpp Later when I compiled, I get the following errors along with others of similar types. Code:
try.cpp:(.text+0xea8): undefined reference to `cv::fillPoly(cv::Mat&, cv::Point_<int> const**, int const*, int, cv::Scalar_<double> const&, int, int, cv::Point_<int>)' Thank you in advance! -- Mangat Rai Modi |
Welcome to LQ.
drawing.cpp , line 1, 2 : #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" Please try editing to : #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> . |
@knudfl
Thanks for the help, however both the syntex are correct and in use. I solved the problem, it was linking error indeed. I used following command to compile my program and it worked fine Code:
try.cpp -Wall /lib/libopencv_highgui.so /lib/libopencv_core.so -- Regards, Mangat Rai Modi |
Marking a thread as solved :
Please use the "Thread Tools" right above post #1 : ... And select : Mark as 'Solved'. |
All times are GMT -5. The time now is 01:42 AM. |