I have been programming in opengl without glut for a while now. I just looked over it and downloaded it and then set it up. I wanted to see if it worked so I wrote a simple program:
#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glut.h>
int main(int argc, char **argv);
int main(int argc, char **argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
glutCreateWindow("Chris'' Glut Program");
glMatrixMode(GL_PROJECTION);
gluPerspective(45, //view angle
1.0, //aspect ratio
10.0, //near clip
200.0); //far clip
glMatrixMode(GL_MODELVIEW);
glutMainLoop();
return 0;
}
The message it comes up with is, "
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/GameEngine.exe : fatal error LNK1120: 1 unresolved externals
Any help?