2017-05-18 12:47:09 -0600 | answered a question | Problem compiling OpenCV 2.4.13 with Cmake and MinGW I also faced the same problem. I found the solution. in the modules/highgui/src/window_w32.cpp please add this lines between the #endif and the #include <commctrl.h> lines like this Here is the original link I found here |