Forum Topic - undefined reference to `tanf':
   
undefined reference to `tanf'  
I am compiling a piece of code and I am getting the following error,

--> undefined reference to `tanf'

I have linked the libm library using -lm command.

Please let me know what is the cause and how to resolve this ?