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.
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.
Use the -lm library.
Chris
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.