I have a file myClass.h which defines an interface. The definition depends on no other classes [headers].
The implementation of the member functions for myClass in the cpp file uses openGL calls so I must include <gl.h>. (I use a c-wrapper in my main() to get the correct function type for the c++ objects.) Where should I put the #include <gl.h>, in the header file or the cpp file? In my [c-like] main [or root] program I include #myClass.h, but I the main also uses glut so I must include <glut.h>, which itself includes <gl.h>. Have I included gl.h twice? Is this bad? If so how do you account for this? I am coming from 20 years of programing with Eiffel which does not have these problems. thanks again, jjj
