Linking wrong with cmake
main.cpp:(.text+0x1521): undefined reference to cv::namedWindow(std::string const&, int)'
main.cpp:(.text+0x1567): undefined reference to
cv::setMouseCallback(std::string const&, void ()(int, int, int, int, void), void*)'
main.cpp:(.text+0x15e6): undefined reference to cv::imshow(std::string const&, cv::_InputArray const&)'
main.cpp:(.text+0x1648): undefined reference to
cv::imshow(std::string const&, cv::_InputArray const&)'
main.cpp:(.text+0x1d5b): undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
but i can link other function correctly
opencv 2.4.13
platform? can you show us your cmakefile?