Hai incluso math.h nel progetto?
Credo ti convenga postare tutto il codice