To compile:

gcc -lm frets.c

that's all,

Jac Koop