You've to pass -lgdi32
for the linker to know that you're using GDI functions. Also the order matters. On Windows 8 with MinGW 4.8.1 tool chain I give this:
- glew
- glfw3
- opengl32
- gdi32
And it works for me; I don't include the other win32 libraries. If you're using GLEW's static library make sure you define GLEW_STATIC
either in CB or directly as -DGLEW_STATIC
.
As for the IDE, I chose QtCreator with CMake and with no Qt SDK.