Re: [Tinyos-help] Need help with Maths Library

2009-12-02 Thread Razvan Musaloiu-E.
Hi! On Wed, 2 Dec 2009, sissou wrote: Hello, In fact, it does not need to add the lm flags since it is already in the makerules but there is a problem with the math library and telosb. for example, this program : implementation{ event void Boot.booted() {

[Tinyos-help] Need help with Maths Library

2009-12-01 Thread Kartik Siddhabathula
Hi All, I need help with the maths library. In the tutorial, it says to pass -lm option to ncc. How am I supposed to do that? make telosb -lm doesn't work nor the various combinations. Please help, Kartik ___ Tinyos-help mailing list

Re: [Tinyos-help] Need help with Maths Library

2009-12-01 Thread Paul Johnson
Kartik, In your local makefile add something similar to this: CFLAGS+=-lm CFLAGS is a variable that make stores and passes to ncc when it compiles. That should do it for you. Cheers, -Paul Kartik Siddhabathula wrote: Hi All, I need help with the maths library. In the tutorial, it says to

Re: [Tinyos-help] Need help with Maths Library

2009-12-01 Thread sissou
Hello, In fact, it does not need to add the lm flags since it is already in the makerules but there is a problem with the math library and telosb. for example, this program : implementation{ event void Boot.booted() { uint8_t a; uint8_t b;