When you compiled with dcc did you use the -lm option? e.g "dcc tiago.c -lm -o tiago"