-
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?
-
Senior Member
OpenGL Guru
Re: error C2065
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?
-
Re: error C2065
Upgrading to FreeGlut fixed error. Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules