title: fatal error gl.h included before glew.h
body: <pre><code>#include&lt;Windows.h&gt;
  #include &lt;GL/freeglut.h&gt;
  #include &lt;GL/glew.h&gt;
  #include&lt;gl/GLU.h&gt;
  #include&lt;gl/GL.h&gt;
  #include&lt;iostream&gt;
  using namespace std;
  
  const int width=1280;
  const int height=960;
  void OnInit();
  void OnShutdown();
  void OnResize();
  void OnRender();
  
  int main(int argc, char** argv) {
  glutInit(&amp;argc, argv);  
  glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE |
  GLUT_RGBA);  
  glutInitContextVersion (3,7     );
  glutInitContextFlags (GLUT_CORE_PROFILE | GLUT_DEBUG);
  glutInitContextProfile(GLUT_FORWARD_COMPATIBLE);
  glutInitWindowSize(width, height);
  glutCreateWindow("getting started with understanding");
  
  
  
  glewExperimental = GL_TRUE;
  GLenum err = glewInit();
  if (GLEW_OK != err){
  cerr&lt;&lt;"Error: "&lt;&lt;glewGetErrorString(err)&lt;&lt;endl;
  } else {
  if (GLEW_VERSION_3_3)
  {
  cout&lt;&lt;"Driver supports OpenGL 3.3\nDetails:"&lt;&lt;endl;
  }   
  }
  cout&lt;&lt;"\tUsing glew "&lt;&lt;glewGetString(GLEW_VERSION)&lt;&lt;endl;
  cout&lt;&lt;"\tVendor: "&lt;&lt;glGetString (GL_VENDOR)&lt;&lt;endl;
  cout&lt;&lt;"\tRenderer: "&lt;&lt;glGetString (GL_RENDERER)&lt;&lt;endl;
  cout&lt;&lt;"\tVersion: "&lt;&lt;glGetString (GL_VERSION)&lt;&lt;endl;
  cout&lt;&lt;"\tGLSL:"&lt;&lt;glGetString(GL_SHADING_LANGUAGE_VERSION)&lt;&lt;endl;
  
  
  OnInit();
  glutCloseFunc(OnShutdown);
  glutDisplayFunc(OnRender);
  glutReshapeFunc(OnResize);
  glutMainLoop();
  return 0;
  
  }
  
  void OnInit() {
  glClearColor(1,0,0,0);
  cout&lt;&lt;"Initialization successfull"&lt;&lt;endl; 
  }
  void OnShutdown() {
  cout&lt;&lt;"Shutdown successfull"&lt;&lt;endl;
  }
  void OnResize(int nw, int nh) {
  
  }
  void OnRender() {
  glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
  glutSwapBuffers();
  }
  </code></pre>
  
  <p>When I build the source code in Microsoft Visual Studio giving the error
  "e:\vs2012\vc\include\gl\glew.h(84): fatal error C1189: #error :  gl.h included before glew.h" .
  And I have also include glew.h before gl.h
  What can be the problem?</p>