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

Thread: NVIDIA / GLU problem ....

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2001
    Posts
    1

    NVIDIA / GLU problem ....

    Hello,

    I have recently updated to XFree86 4.1.0 using NVIDIA 1.0-1251 drivers. The NVIDIA drivers were compiled against XFree 4.0.2 and until recently nothing appeared to be broken.
    Now I am trying to compile a simple tutorial (lesson 03 off of NeHe's site) and I am getting the error output:

    gcc -Wall -pedantic -ansi lesson03.c -o lesson03 -L/usr/X11R6/lib -lGL -lGLU -lXxf86vm
    /usr/X11R6/lib/libGLU.so: undefined reference to `sqrt'
    /usr/X11R6/lib/libGLU.so: undefined reference to `floor'
    /usr/X11R6/lib/libGLU.so: undefined reference to `cos'
    /usr/X11R6/lib/libGLU.so: undefined reference to `sin'
    collect2: ld returned 1 exit status
    make: *** [all] Error 1


    I am curious if anyone has hit this before or might clue a newbie in some elementary OpenGL system setup Thanks in advance.


    p.s I am running RH 7.1

  2. #2
    Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Vancouver BC Canada
    Posts
    433

    Re: NVIDIA / GLU problem ....

    add -lm to that command line.

    You need to link in the math library.

Posting Permissions

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