EmbDev.net

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


Author: Florian (Guest)
Posted on:

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

Author: Bernd N. (Guest)
Posted on:

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

#include <math.h>

and thats it.

Author: Florian (Guest)
Posted on:

Rate this post
0 useful
not useful
Thanks,

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

Reply

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.