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
    10

    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
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    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
    10

    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...

Similar Threads

  1. How to link a glut.dll in VB?
    By harbor in forum OpenGL: General
    Replies: 1
    Last Post: 08-28-2005, 10:35 AM
  2. GLUT link error !
    By aksuvari in forum OpenGL: General
    Replies: 5
    Last Post: 04-10-2004, 02:36 AM
  3. GLUT link error !
    By aksuvari in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 02-24-2004, 03:29 PM
  4. GLUT link error
    By BASIC in forum OpenGL: General
    Replies: 2
    Last Post: 12-17-2003, 02:49 PM
  5. How to Link OpenGL and GLUT libraries
    By in forum OpenGL: macOS
    Replies: 1
    Last Post: 09-17-2002, 01:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean