Forum: µC & Digital Electronics SDCC math.h with LPC922

von Florian (Guest)

Rate this post
0 useful
not useful
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.

von Bernd N. (Guest)

Rate this post
0 useful
not useful
This has nothing to do with the SDCC compiler. Simply include math.h 

#include <math.h>

and thats it.

von Florian (Guest)

Rate this post
0 useful
not useful

first include math.h was not working but I found the folder what its 


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.