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: math.h

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2001
    Location
    Riverside, CA, USA
    Posts
    18

    math.h

    gcc -o house -I/usr/X11R6/include/ proj2.c -L/usr/X11R6/lib/ -lGL -lGLU -lglut

    compiler error: i could cos and sin is not define

    i have included the header math.h so where do i need to specify to make it work? thank you.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    State College, PA
    Posts
    186

    Re: math.h

    Use the -lm library.

    Chris

Posting Permissions

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