Results 1 to 2 of 2

Thread: error in opengl

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2011
    Location
    Karnataka,india
    Posts
    1

    error in opengl

    when m trying to execute ehci-0.6 m getting d errors
    undefined reference gluprespective n glulookat as follows

    /home/niveditha/project/ehci-0.6/samples/6dofhand.cpp:578: undefined reference to `gluPerspective'
    6dofhand.o: In function `ReSizeGLScene(int, int)':
    /home/niveditha/project/ehci-0.6/samples/6dofhand.cpp:482: undefined reference to `gluPerspective'
    6dofhand.o: In function `DrawGLScene()':
    /home/niveditha/project/ehci-0.6/samples/6dofhand.cpp:436: undefined reference to `gluLookAt'
    collect2: ld returned 1 exit status
    make[3]: *** [6dofhand] Error 1

    can u please help me...
    niveditha

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: error in opengl

    You forgot to link to glu : add -lGLU to your command line.

Similar Threads

  1. Replies: 3
    Last Post: 12-22-2015, 09:48 PM
  2. Shader Compile Error: ERROR: 0:1: '' : syntax error #version
    By Blakeasd in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 07-25-2013, 07:35 PM
  3. ERROR: 0:17:'f' : syntax error parse error
    By hopeless in forum OpenGL: GLSL
    Replies: 1
    Last Post: 08-23-2010, 01:05 PM
  4. Replies: 1
    Last Post: 09-24-2007, 04:02 AM
  5. Replies: 3
    Last Post: 02-07-2003, 05:06 AM

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