error C2065

windows xp vs2008 c++

when i use “glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);”
my app runs as expected.

When I try “glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGB);”
I get the error “error C2065: ‘GLUT_DOUBLE’ : undeclared identifier”. What am I overlooking?

Are you using GLUT or FreeGLUT? If you’re using GLUT, then upgrade to FreeGLUT.

Granted, that doesn’t explain your error, but you should still do that. FreeGLUT is compatible with GLUT.

Are you sure you spelled “GLUT_DOUBLE” correctly? Does Intellisense find the define? If so, what header does it find it in when you search for the declaration of the define?

Upgrading to FreeGlut fixed error. Thanks!