|
From: Greg C. <gch...@sb...> - 2011-01-07 14:29:30
|
On 2011-01-07 12:00Z, Gauthier Fleutot wrote: > > I try to run OpenCV and all sample programs freeze after opening a window. > After a bit of debugging, I came to the conclusion that MoveWindow() from > the MinGW windows API was causing the freeze. MoveWindow() is implemented by the operating system, not by MinGW. Presumably the problem lies elsewhere. > Apparently, I got two definitions and declarations of the function, one in > mingw and one in msys. Both pathes are in my PATH envvar. It looks like more than one copy of the compiler has been installed. It's probably best to remove all of this and perform a fresh install. > - c:\mingw\msys\1.0\include\w32api\winuser.h > - c:\mingw\include\winuser.h. One copy of the headers is enough, in the compiler's 'include' directory. > The function definition is respectively in: > - c:\mingw\msys\1.0\lib\w32api\winuser.h > - c:\mingw\lib\winuser.h. There should be no 'winuser.h' in the 'lib' directory. |