I am using a tmote sky, telosb
platform mote and I am trying to use math functions in the nesC code.
The problem though that I compile without errors in any other form
other then telosb. But when I "make telosb", I get the following
errors. Did I not do something right? How do I fix this problem? Any
responses would be greatly appreciated. Thanks.
$ make telosb
mkdir -p build/telosb
compiling MathRadioC to a telosb
binary
ncc -o build/telosb/main.exe -Os
-mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC242
0Radio
-I/opt/tinyos-1.x/tos/../beta/STM25P -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x
7C -Wnesc-all -target=telosb
-fnesc-cfile=build/telosb/app.c -board= -DIDENT_PRO
GRAM_NAME="MathRadioC"
-DIDENT_PROGRAM_NAME_BYTES="77,97,116,104,82,97,100,105,1
11,67,0" -DIDENT_USER_ID="lett1"
-DIDENT_USER_ID_BYTES="108,101,116,116,49,0" -D
IDENT_HOSTNAME="LETT1-WD1"
-DIDENT_HOSTNAME_BYTES="76,69,84,84,49,45,87,68,49,0"
-DIDENT_USER_HASH=0xd97d18c0L
-DIDENT_UNIX_TIME=0x438485e3L MathRadioC.nc -lm
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:115:
w
arning: `Send.sendDone' called
asynchronously from `sendFailed'
/cygdrive/c/DOCUME~1/lett1/LOCALS~1/Temp/ccYmLfuX.o(.text+0x2524):
In function `MathRadioM$sendValue': app.c: undefined reference to `sqrt'
/cygdrive/c/DOCUME~1/lett1/LOCALS~1/Temp/ccYmLfuX.o(.text+0x253c):app.c:
undefined reference to `log'
/cygdrive/c/DOCUME~1/lett1/LOCALS~1/Temp/ccYmLfuX.o(.text+0x2554):app.c:
undefined reference to `exp'
make: *** [exe0] Error 1
Tony Le
JHU-APL
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help