Using Math Functions in PSoC Creator for PSoC5's GCC Compiler | Cypress Semiconductor
Using Math Functions in PSoC Creator for PSoC5's GCC Compiler
There have been many contestants who have faced difficulty while using math functions in PSoC Creator using PSoC5's GCC Compiler even after including the 'math.h' header file.
Please undertake the following to eliminate the Build error:
Goto Project > Build Settings > Linker > General > Additional Libraries. Now type m in the Additional Libraries field.
Now, after the project Builds without any math error.
Refer to the KB article at the following link: http://www.cypress.com/?id=4&rID=42838