I am using an NXP P89LPC922 with Eclipse and SDCC. I need some mathematical functions and so I want so include <math.h> but Eclipse is saying: unresolved inclusion. I tried to find something about that in the documentation of SDCC but there is not much written. Can anyone help me on how to get mathematical functions to work with the LPC922?
Thanks in advance.
SDCC should be able to find it as it is shipped with it.
It is Eclipse that cannot find it so you'll have to tell eclipse where to look for it.
Thank you very much. I found math.h .
With math.h I got the problem that it needs to much storage on the microcontroller. Do you think it is possible to use some kind of Approximation of the pow() - Part without using math.h?
Try to stay with integers only if possible.