solved my last problem, but now a new one.
when linking my SDL/OpenGL app against /mingw/lib/libopengl32.a etc.. I
get an error on startup
Error: dll starting at 0x73371000 not found.
(times 3, with different 0x number)
When linking against c:/Windows/System32/opengl32.dll etc...
undefined reference: glEnable@...
and so forth with all GL functions..
BTW I'm on Vista and I'm using glew