Try this:
Code:
gcc math.c -o math -W -Wall -ansi -lm
You just need to link in the math library