Hi all,
In my application I use functions called from a library, I think that my
library is already linked with my application, In fact when I try to compile on
PC using make pc the compilation is done with success but the problem when I
compile on a real mote using make telosb the compiler don't recognize the
different functions called from the library and I have this output :
$ make telosb
mkdir -p build/telosb
compiling Miller to a telosb binary
ncc -o build/telosb/main.exe -O -I. -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnes
c-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I%T/lib/Deluge -Wl
,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NA
ME=\"Miller\" -DIDENT_USER_ID=\"rania\" -DIDENT_HOSTNAME=\"your-01199f19b2\" -DI
DENT_USER_HASH=0x23006c1eL -DIDENT_UNIX_TIME=0x49e19deaL -DIDENT_UID_HASH=0x851c
8498L -mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio Miller.nc -lm -L. -l
miracl
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x556): In function `M
illerM$StdControl$init':
app..c: undefined reference to `mirsys'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x564):app.c: undefine
d reference to `mirvar_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x576):app.c: undefine
d reference to `mirvar_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x588):app.c: undefine
d reference to `mirvar_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x59c):app.c: undefine
d reference to `mirvar_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x5ae):app.c: undefine
d reference to `mirvar_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x5c2):app.c: more und
efined references to `mirvar_mem' follow
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x622): In function `M
illerM$StdControl$init':
app.c: undefined reference to `epoint_init_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x634):app.c: undefine
d reference to `epoint_init_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x646):app.c: undefine
d reference to `epoint_init_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x65a):app.c: undefine
d reference to `epoint_init_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x66a):app.c: undefine
d reference to `irand'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x67c):app.c: undefine
d reference to `zero'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x6c6):app.c: undefine
d reference to `mr_lzero'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x6ea):app.c: undefine
d reference to `ecurve2_init'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x6fa):app.c: undefine
d reference to `bigbits'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccAX72Gw.o(.text+0x712):app.c: undefine
d reference to `mul2_brick'
make: *** [exe0] Error 1
Please have you any idea about this problem ?
Best Regards,
Rania
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help