I'm creating a game engine using OpenGL, and I'm initializing the extensions manually, i.e. this:
// .h file
/* .cpp file, initialization function */
glActiveTexture = (PFNGLACTIVETEXTUREPROC) wglGetProcAddress("glActiveTexture");
However, when I compile, I get the following error every time I call an OpenGL extension function:
multiple definition of 'gl[some function]'
Why might this be? It reeks of an include loop problem, but I have include guards everywhere.