Hi everyone
I am new to OpenGL and I am having trouble getting a program from the OpenGL SuperBible to run.
I have MSVC++ and Glut 3.7. The Glut32.dll is in my Windows/System32 dir. The Glut.h is in my VC98 include dir and the Glut32.lib is in my VC98 lib dir
Here is the code and the error
#include <windows.h>
#include <gl\glut.h>
void RenderScene(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
}
void SetupRC(void)
{
glClearColor(0.0f,0.0f,1.0f,1.0f);
}
void main(void)
{
glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB);
glutCreateWindow(“Simple”);
glutDisplayFunc(RenderScene);
SetupRC();
glutMainLoop();
}
unexpected end of file while looking for precompiled header directive
I am sure I have everything linked right.I have the glut32.lib added to my link list and have instructed the compilier to use the VC98 lib and include dir’s.
Any help to resolve this problem would be greatly appreciated!
Thanks for the patience
Don