Ask Your Question

Revision history [back]

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

#  pragma GCC diagnostic ignored "-Wmissing-declarations"
#endif

/*start new code lines*/
#if (_WIN32_IE < 0x0500)
#pragma message("WARNING: Win32 UI needs to be compiled with _WIN32_IE >= 0x0500 (_WIN32_IE_IE50)")
#define _WIN32_IE 0x0500
#endif
/*end new code lines*/   

#include <commctrl.h>
#include <stdlib.h>
#include <string.h>

Here is the original link I found here