OpenCV 3.0 undefined reference error?
问题 I've just followed the instructions to install opencv 3 on my ubuntu computer (I've already installed and ran programs using opencv 3 on a different linux device), however, when I tried to run one of my test programs from my old computer I get the following errors: CMakeFiles/VideoTest.dir/VideoTest.cpp.o: In function `main': VideoTest.cpp:(.text+0x6f): undefined reference to `cv::VideoWriter::fourcc(char,char,char, char)' VideoTest.cpp:(.text+0xc3): undefined reference to `cv::VideoWriter: