ive been working on a wrapper class for OpenGL, and i got it pretty much how i want it, but when i compile i get a million re-definition errors that all point back to gl.h. it looks like a multiple include, but i am only including the OGL headers in one file in my program.
the headers for the only 3 files in my program look like this:
Code:
//Main.cpp
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "resource.h"
#include "oglDisplay.h"
Code:
// oglDisplay.h
#ifndef _OGLDISPLAY_H_
#define _OGLDISPLAY_H_
#include "gl/gl.h"
#include "gl/glu.h"
//...
#endif
Code:
// oglDisplay.cpp
#include "oglDisplay.h"
if you need any more code than that to deduce the problem, let me know.