Goto Project > Build Settings > Linker > General > Additional Libraries.
Now type m in the Additional Libraries field.
You could also refer to this KB article: http://www.cypress.com/?id=4&rID=42838
Congratulations! Your first post and a quite correct, prompt and complete one!
This math library supports log10() function as well.