Firstly, excuse me for insisting so much on this, but I really do not know
what to do.
I use telosb motes and an external sensor and I need to use the natural
logarithmic function in order to convert the adc value of the sensor. I
tried:
#include <math.h>
...
x=log(y);

but at "make" I get:
app.c:(.text+0x18a6): undefined reference to `log'
make: *** [exe0] Error 1

I also tried:
#include <math.h>
...
x=logf(y)

as a friend from this mail list suggested (thanks!) and then the compilation
was okay but the results of logf were wrong! It does not compute ln or log.

I also tried:
#include "math.h"
...
x=log(y);

and at Makefile:
CFLAGS +=  -l$/usr/msp430/include

but then I got:
msp430-ld: cannot find -lusr/msp430/include
make: *** [exe0] Error 1

What should I do to use math.h?
Also, in all math.h files I could find there is not such a function as
logf()! So, why is it possible to be compiled?
Sorry for writing again for the same issue.
Regards,
Georgia
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to