On May 11, 2007, at 1:37 AM, Marcin Foks wrote:

Dear TinyOS mailing list subscribers,

I have encountered a problem in TinyOS 2 with the log function (or any other from the math.h) on the Telosb mote. I would appreciate any help.

$ make telosb
mkdir -p build/telosb
    compiling DSCBaseAppC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul - DCC2420_DEF_CHANNEL=24 -Wal l -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc- cfile=build/
telosb/app.c -board=   DSCBaseAppC.nc -lm
/cygdrive/c/DOCUME~1/mfo/LOCALS~1/Temp/cc6kMIB8.o: In function `SchedulerBasicP$
TaskBasic$runTask':
app.c:(.text+0xed2): undefined reference to `log'
make: *** [exe0] Error 1

Thanks in advance


This is an issue with the underlying native C compiler. It looks like the make system is doing the right thing: it's linking in the math library (-lm). Try invoking ncc with -v to see if everything is being invoked properly?

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to