Ask Your Question

Revision history [back]

I have installed opencv 2.4.10, but i am unable to include opencv. header files.I'm getting "undefined reference to `cv::'".Can any one help?

sample.c:(.text+0x92): undefined reference to cv::imread(std::string const&, int)' sample.c:(.text+0x12a): undefined reference tocv::namedWindow(std::string const&, int)' sample.c:(.text+0x15b): undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)' sample.c:(.text+0x19b): undefined reference tocv::imshow(std::string const&, cv::_InputArray const&)' sample.c:(.text+0x1c3): undefined reference to `cv::waitKey(int)'

I have installed opencv 2.4.10, but i am unable to include opencv. header files.I'm getting "undefined reference to `cv::'".Can any one help?

sample.c:(.text+0x92): undefined reference to cv::imread(std::string `cv::imread(std::string const&, int)'
sample.c:(.text+0x12a): undefined reference tocv::namedWindow(std::string to `cv::namedWindow(std::string const&, int)'
sample.c:(.text+0x15b): undefined reference to cv::_InputArray::_InputArray(cv::Mat `cv::_InputArray::_InputArray(cv::Mat const&)'
sample.c:(.text+0x19b): undefined reference tocv::imshow(std::string to `cv::imshow(std::string const&, cv::_InputArray const&)'
sample.c:(.text+0x1c3): undefined reference to `cv::waitKey(int)'

`cv::waitKey(int)'