I have a project that I have been coding on OS X that I am now trying to get building on Windows. I have set up MinGW, created a makefile, and after a good deal of finagling everything compiles, however when it gets to the linker step a great number of errors occur along the lines of:
SourceFile.cpp:(.text+0x1809): undefined reference to 'glEnable@4'
The linker command, omitting all the source.o names is fairly straightforward:
g++ -lglu32 -lopengl32
I have also tried with the link order switched, and with the full path to the .a files included, all give me the same results. Using the _STDCALL_SUPPORTED and _M_IX86 macros in the compiler step has not made any difference.
In case it's relevant, I am using GLee, which I am building directly into my program (though I also tried with glew, and got the same results).
Any help would be appreciated.