I've created a program in Eclipse / MinGW / C (project type: C) which should just present an empty window. It also has the folowing line:
wndclassex.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
The call to GetStockObject()
produces a compiler error:
Z:/mtsts_workspace/MTSTS/Debug/../WinMain.c:29: undefined reference to `GetStockObject@4'
Has anyone an idea what's wrong ?