Linking wrong with cmake

asked 2019-02-08 21:03:30 -0500

main.cpp:(.text+0x1521): undefined reference to cv::namedWindow(std::string const&, int)' main.cpp:(.text+0x1567): undefined reference tocv::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 tocv::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

edit retag flag offensive close merge delete


platform? can you show us your cmakefile?

LBerger gravatar imageLBerger ( 2019-02-08 23:01:45 -0500 )edit