PDA

View Full Version : math.h



caophong
05-03-2001, 07:48 AM
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.

chennes
05-03-2001, 08:22 AM
Use the -lm library.

Chris