Ошибка C++: undefined reference to `__imp_BitBlt'
Решил сделать глич эффект на C++. Код:
#include <windows.h>
int main(){
HWND upWnd = GetForegroundWindow();
HDC upHdc = GetDC(upWnd);
HDC desktop = GetDC(NULL);
int xs = GetSystemMetrics(SM_CXSCREEN);
int ys = GetSystemMetrics(SM_CYSCREEN);
while (true){
upWnd = GetForegroundWindow();
upHdc = GetDC(upWnd);
desktop = GetDC(NULL);
BitBlt(desktop, -1,1,xs,ys,upHdc,2,2, 0x999999);
}
}
Выводится ошибка D:\CodeBloсks\1\main.cpp|15|undefined reference to `__imp_BitBlt'
Среда программирования CodeBlocks компилятор GNU GCC Compiler