📜  未定义对 `cv::VideoCapture::VideoCapture(cv::String const&)' 的引用 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:39.958000             🧑  作者: Mango

代码示例1
prashad@ubuntu:~/test$ g++ open_videofile.cpp  `pkg-config --cflags --libs opencv` 


Explanation:
need to compile opencv programs with `pkg-config --cflags --libs opencv` . 
it solve below undefined reference errors:

undefined reference to `cv::VideoCapture::VideoCapture(cv::String const&)'