Original Post
Hello, I'm getting errors in gl.h. I'm making a windows opengl program and whenever I try moving from a single file and to incorporate classes and the like I get errors. Most of them are showing up in gl.h which is ridiculous but I think I've found the problem. The way I have it set up so far is in main.cpp is all the windows stuff and it includes and "Render.h". In Render.h I have class Render : public Utility. Also "private: Utility* ren;". In Render.cpp I include . In Utility.cpp I include again. If gl.h is included twice does that produce the error? If so how can I only include it once for all the files that need it. Another question I have is about syntax. Is: class foo : public bar {} the same as: class bar; class foo{} //uses stuff from bar Thanks for any help and corrections anywhere.