Getting this wierd "\include\gl\gl.h"errors..

hi after I run my simple program I get these errors in Visual C++. I dont know what it is …its going to different header files or program for some reason even though I included one header files in my source code that is #include “glut.h”
any suggestions

c:\program
files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ‘;’ before type ‘void’

c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: ‘WINGDIAPI’ : missing storage-class or type specifiers

c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found

You must include the windows.h file before the GL/gl.h file.

Originally posted by Humus:
You must include the windows.h file before the GL/gl.h file.

thank you…
now I’m facing different errors…why am I getting it?..this is the main function of my code
void main ( int argc, char **argv )
{
glutInit ( &argc, argv );
glutInitDisplayMode ( GLUT_DEPTH | GLUT_RGB | GLUT_DOUBLE);
glutInitWindowPosition (100, 100);
glutInitWindowSize( 800, 600);
glutCreateWindow( “hello world”) ;
glutDisplayFunc( renderScene );
glutIdleFunc( renderScene);
glutKeyboardFunc ( keyboardInput);
glutMainLoop();
}

u:\prot riangle.cpp(47) : error C2065: ‘BGL_DEPTH’ : undeclared identifier
u:\prot riangle.cpp(47) : error C2065: ‘BGL_RGB’ : undeclared identifier
u:\prot riangle.cpp(47) : error C2065: ‘BGL_DOUBLE’ : undeclared identifier

What’s at line 47 in your code?

Originally posted by ffish:
What’s at line 47 in your code?

glutInitDisplayMode ( GLUT_DEPTH | GLUT_RGB | GLUT_DOUBLE);

l

et me paste the whole code

#include “windows.h”
#include “glut.h”
#include <stdlib.h>

#include <math.h>

static const char * const APP_NAME = “glut Test 1”;
static const char APP_KEY_QUIT = ‘q’;

void renderScene()
{
static float angle = 0.0f;
glClear ( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glPushMatrix();
glColor3f(1.0f, 0.0f, 0.0f );

glRotatef( angle, 0.0, 1.0, 0.0 );
glBegin ( GL_TRIANGLES ) ;
glVertex3f( -0.5, -0.5, 0.0 );
glVertex3f(0.0, 0.5, 0.0 );
glVertex3f(0.5, -0.5, 0.0 );
glEnd();

glPopMatrix();
glFlush();
glutSwapBuffers();
angle +=1.0f;

if (angle > 360.0f )
angle += fmod( angle, 360.0f);

}

void keyboardInput( unsigned char key, int x, int y )
{
switch (tolower(key))
{
case APP_KEY_QUIT:
exit(0);
break;
}
}

void main ( int argc, char **argv )
{
glutInit ( &argc, argv );
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glutInitWindowPosition (100, 100);
glutInitWindowSize( 800, 600);
glutCreateWindow( “APP_NAME”) ;
glutDisplayFunc( renderScene );
glutIdleFunc( renderScene);
glutKeyboardFunc ( keyboardInput);
glutMainLoop();

}