about undefined reference for 'sinf'

I m writting code in c using another library(parapin) and making Makefile .but there is a error like
undefined reference to `sinf'
undefined reference to `ceilf'
although i have added math.h library in my code
. I tried to run simple programme using math.h
and it run.but in making Makefile it is giving me error
.

Try adding -lm option when you link.

Undefined references have nothing to do with include files. include files are used during compilation, in which it is assumed that the function names declared in the headers exist. In the linking phase, it actually tries to find all these functions, looking in your own code and inside libraries, and if it finds them all, ties it all together to make your own executable.

If you use functions from other libraries, you have to not just include the headers, but link them in.