Overv / OOGL

Object-oriented C++ wrapper for OpenGL.
Boost Software License 1.0
414 stars 45 forks source link

If i not place #include <GL/OOGL.hpp> statement just before my main function, compiler gives error messages #29

Open ghost opened 6 years ago

ghost commented 6 years ago
#include <Garbage.H>
#include <Alert.H>
#include <Game.H>

#include <GL/OOGL.hpp>

int main(void)
{

}

Is okay but i can't do it like that because my libraries need GL namespace and putting include statement above makes compiler give error

In the first statement of Garbage.H, for example, i make few definitions for my personal preferences, like writing Integer instead of int. `

define Integer int`

When i put the include statement above, compiler gives a meaningless error message:

include/Garbage.H:20:17: error: expected ‘)’ before ‘int’
 #define Integer int

Even if i remove the define statement, it gives the a similar error from another file. What is the problem?

Overv commented 6 years ago

Can you upload your Garbage.H file somewhere?