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 9 of 9

Thread: cant open include file? 'GL/glut.h'

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2003
    Location
    ny
    Posts
    7

    cant open include file? 'GL/glut.h'

    fatal error C1083: Cannot open include file: 'GL/glut.h': No such file or directory.

    can someone tell me how to fix this problem. I installed microsoft visual c++ 6 today, d/led the glut and opengl files.

    placed the follwoing files gl.h , glut.h , glu.h in \VC98\Include\gl\ directory,

    also placed opengl32.lib , glu32.lib , glut32.lib in the \VC98\Lib\ direcotry

    also added opengl32.dll , glu32.dll and glut32.dll in the \system32 directory and still getting that error. please someone help me, im running WinXP.

    thanks in advance.

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2003
    Posts
    4

    Re: cant open include file? 'GL/glut.h'

    I had a similar problem with glut.h the other day using devc++. All I had to do was add some linker paths to the project for glut32.h or something and it ran.

    I discovered this by downloading a devc++ project file from Nehe that ran and then worked out what was different that made it run and not mine. Perhaps you could do the same as there are Visual Studio projects there too. (I used lesson one I think)

    Good luck!
    Scam

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2003
    Location
    ny
    Posts
    7

    Re: cant open include file? 'GL/glut.h'

    anyone has any other suggestions?

  4. #4
    Junior Member Regular Contributor
    Join Date
    Mar 2004
    Posts
    143

    Re: cant open include file? 'GL/glut.h'

    GLUT is an add-on to OpenGL, its not part of OpenGL.

    Check this out: http://www.xmission.com/~nate/glut.html

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,633

    Re: cant open include file? 'GL/glut.h'

    Wild stab: use
    Code :
    #include <gl/glut.h>
    instead of
    Code :
    #include "gl/glut.h"

  6. #6
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,070

    Re: cant open include file? 'GL/glut.h'

    You may also try this:

    change #include<GL/glut.h> to #include<GL\glut.h>

    In unix the forward slash is used for directotry seperators, in DOS the back slash is used.

    Note some compiler will take it ether way, not sure with VC6.

  7. #7
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,633

    Re: cant open include file? 'GL/glut.h'

    MSVC6 doesn't mind the forward slash.

  8. #8
    Junior Member Newbie
    Join Date
    Nov 2003
    Location
    ny
    Posts
    7

    Re: cant open include file? 'GL/glut.h'

    im running the microsoft visual c++ 6 introductory something... not sure but i will try all your suggestions later tonight and will let you all know.

    thanks ppl.

  9. #9
    Guest

    Re: cant open include file? 'GL/glut.h'

    In visual c++ in project/setting in setting go in link and there add opengl32.lib glu32.lib glut32.lib in the field objects/librairy modules.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •