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

Thread: cant link glut.h

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    durgapur,west bengal, india
    Posts
    11

    cant link glut.h

    whenever i compile in linux a program with the statement : #include <GL/glut.h> i get an error message that glut.h not found, but i have the file in /usr/X11R6/include/glut.h directory.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    668

    Re: cant link glut.h

    try
    #include glut.h

    I assume that is your system path you are talking about. try <glut.h> and "glut.h" but link to it when compiling -L /usr.... -I /usr...

  3. #3
    Guest

    Re: cant link glut.h

    I have the files in /usr/include/GL/ you can copy them to that location or compile with:
    g++ -I/usr/X11R&/include/ ...

    The standard way is to have the OpenGL include files in a GL directory in the usual include directory.

  4. #4
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    durgapur,west bengal, india
    Posts
    11

    Re: cant link glut.h

    Thanks for the reply , actually I don't know to set the include path.

    Originally posted by Gavin:
    try
    #include glut.h

    I assume that is your system path you are talking about. try <glut.h> and "glut.h" but link to it when compiling -L /usr.... -I /usr...

Posting Permissions

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