Screen Video Capture / opencv/Windows API linkage issues

again, just add -lgdi32 to your linker cmdline

and, just out of curiosity:

g++ --version

reports what ?