title: Windows/opengl glext.h build issue
body: <p>So I'm trying to bring a c++ project using Qt and OpenGL written and compiled on a Linux machine over to my Windows 7 machine at home, but I'm running into some difficulty.  First I learned that some gl things (like GL_TEXTURE0) were no longer defined because gl.h doesn't define them for windows.  Also, the glext.h that I have does not define some functions like glActiveTexture.  Both of these issues I found could be solved by bringing in a newer glext.h.</p>
  
  <p>My most immediate issue seems to be that I'm not bringing it in correctly.  If I do:</p>
  
  <pre><code>#define GL_GLEXT_LEGACY      //should prevent old glext.h from being included
  #define GL_GLEXT_PROTOTYPES  //should make glActiveTexture be defined 
  #include &lt;qgl.h&gt;                 
  #include "glext.h"           //local up-to-date glext.h
  #include &lt;QGLShaderProgram&gt;
  </code></pre>
  
  <p>then make tells me that I have undefined references to glActiveTexture.  If I include QGLShaderProgram before glext.h, then I still have that problem, but make also warns me that I am redefining quite a few things that are defined in both QGLShaderProgram and glext, so I know the latter file is being included.  Any help would really be appreciated.</p>