PDA

View Full Version : error C2065



Gary Bennett
05-19-2011, 06:58 PM
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?

Alfonse Reinheart
05-19-2011, 07:53 PM
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?

Gary Bennett
05-21-2011, 06:56 PM
Upgrading to FreeGlut fixed error. Thanks!