I'm having issues with wglext.h in MinGW. The version from Visual Studio isn't working (compiler screams about missing defines).
So I tried using mesa-dev and compiling it with MinGW - and I get bug
Fatal error: glapi.h: No such file or directory
Any ideas how to solve this?
So again answering my question.
SOLVED!
You have to link against OpenGL32 and GDI32 after object files (for some unknown reasons).
So instead of (I'm using a makefile, so unpacked it'll look like)
g++ -lopengl32 -lgdi32 main.o -o main
one must use
g++ main.o -lopengl32 -lgdi32 -o main