#define GLEW_STATIC

I successfully deployed this preprocessor directive in Eclipse compiler options (-D) as I was looking for a solution to a problem that the -D has fortunately fixed.

Truth is I don't understand the fix. I thought a directive was, in this case,by its nature of substituting one thing for another #define GLEW_STATIC. Buy it doesn't seem to be swapping anything?? Seems to be more of a declaration. Where am I going wrong in thinking abt the precompiler directive.

Last edited on
somewhere in the code you'll have
1
2
3
4
5
#ifdef GLEW_STATIC
//some code
#else
//another code
#endif 
you don't care about the content, only that exists, and with that it choose the snip to compile.
Thx!!
Topic archived. No new replies allowed.