Thanks, the second solution works.
But to make sure I'm understanding this.
I *can* use
#ifndef __glut_h__
#include <GL\glut.h>
#endif
to ensure glut.h is not included twice, but is it necessary? If the file is
only "processed once" then what is the point? It seems to make no difference
in my code.
Now to the second thing. I set the preprocessor directive as described and it
fixed the problem. (I'll have to read about preprocessing when I have more
time.) Dhis mean that anyone using my code (specificly myClass) will have to
do that as well? How do you let users of your classes (assuming we are going
for reuse in our library classes) know to do this? Is this setting only for
this project now does it apply to my visual c++ setup?
--- In [email protected], Paul Herring <pauljherr...@...> wrote:
>
> On Mon, Jan 25, 2010 at 2:29 AM, Jimmy Johnson <boxer...@...> wrote:
> > Yes, the sugested solutions seem to be to change glut.h! Has anyone found
> > a solution that does not involve changing "library" code?
>
> <http://stackoverflow.com/questions/14402/glut-exit-redefinition-error>
> has two different solutions (for VS) that don't appear to involve
> changing the library header.
>
> --
> PJH
>
> http://shabbleland.myminicity.com/
> http://www.chavgangs.com/register.php?referer=9375
> http://www.kongregate.com/?referrer=Shabble
>