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>)'
try.cpp:(.text+0xec0): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
try.cpp:(.text+0xf08): undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
try.cpp:(.text+0xf30): undefined reference to `cv::waitKey(int)'
All these functions have been there in the included header files. #include path given is relative to
/usr/include, so it seems to be right. plus all these have there libraries too at
/usr/lib/libopencv_core.so, /usr/lib/libopencv_highgui.so etc. which is again the default path where the linker will search for library. I really couldn't figure out that why g++ couldn't find the definations for these functions.
Thank you in advance!
--
Mangat Rai Modi