OOGL icon indicating copy to clipboard operation
OOGL copied to clipboard

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

Open ghost opened this issue 7 years ago • 1 comments
trafficstars

#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?

ghost avatar Aug 18 '18 23:08 ghost

Can you upload your Garbage.H file somewhere?

Overv avatar Aug 19 '18 19:08 Overv