I am having a strange problem.
The math libraries has been added to my makefile.
# include standard C library LDFLAGS += -lc # include standard math
You can use "filename.c -lm" to solve this problem . And please don't forget to use header file math.h