I am using OpenCV to display a video my code is as
#include #include #include #include
After having the same issue, I added one more header, opencv/ml.h, which is for machine learning. With this header and the Path variable C:\opencv\sources\3rdparty\ffmpeg\ your code works on my machine.
opencv/ml.h
C:\opencv\sources\3rdparty\ffmpeg\