Ask Your Question
0

opencv monitorfromrect: was not declared in this scope

asked 2014-03-08 20:24:04 -0600

hgc gravatar image

win7+mingw(from codeblock)+opencv 2.4.8
[ 26%] Built target pch_Generate_opencv_highgui [ 26%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj C:\Program Files (x86)\opencv\sources\modules\highgui\src\window_w32.cpp: In function 'void cvSetModeWindow_W32(const char, double)': C:\Program Files (x86)\opencv\sources\modules\highgui\src\window_w32.cpp:477: error: 'MonitorFromRect' was not declared in this scope C:\Program Files (x86)\opencv\sources\modules\highgui\src\window_w32.cpp: In function 'LRESULT MainWindowProc(HWND__, UINT, WPARAM, LPARAM)': C:\Program Files (x86)\opencv\sources\modules\highgui\src\window_w32.cpp:1355: error: 'MonitorFromRect' was not declared in this scope mingw32-make.exe[2]: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj] Error 1 mingw32-make.exe[1]: [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 mingw32-make.exe: ** [all] Error 2 how to solve this.

edit retag flag offensive close merge delete

Comments

you probably need to update your opencv codebase

berak gravatar imageberak ( 2014-03-09 06:16:26 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-10 01:24:11 -0600

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-08 20:24:04 -0600

Seen: 986 times

Last updated: Apr 10 '14