Tag:waitKey

  • CodeBlocks undefined reference method for ‘cv:: waitkey (int)’

    Time:2022-6-6

    Undefined reference to ‘cv:: waitkey (int)’ I always thought it was the c++11 or g++ version. I saw: http://forum.ubuntu.com.cn/viewtopic.php?f=48&t=377522 Propose: g++ `pkg-config –cflags –libs opencv` lena.cpp -o lena This will cause compilation to fail, and g++ lena.cpp `pkg-config –cflags –libs opencv` -o lena This will succeed. I tried, and it was true. The undefined reference […]