Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: error C2065

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2010
    Location
    US
    Posts
    10

    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?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,793

    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?

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2010
    Location
    US
    Posts
    10

    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
  •