Hi,
I have a library already linked with my application when I compile withmake pc
I have no problem, but when I compile using make telosb the compiler don't
recognize functions called from the library and I obtain this error:
$ 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=0x49dc6ac8L -DIDENT_UID_HASH=0xee2d
ba53L -mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio Miller.nc -lm -L. -l
miracl
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccxBD1vb.o(.text+0x140): In function `m
ain':
app.c:undefined reference to `mirsys'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccxBD1vb.o(.text+0x14e):app.c: undefine
d reference to `mirvar_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccxBD1vb.o(.text+0x160):app.c: undefine
d reference to `epoint_init_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccxBD1vb.o(.text+0x172):app.c: undefine
d reference to `epoint_init_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccxBD1vb.o(.text+0x184):app.c: undefine
d reference to `epoint_init_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccxBD1vb.o(.text+0x198):app.c: undefine
d reference to `epoint_init_mem'
/cygdrive/c/DOCUME~1/rania/LOCALS~1/Temp/ccxBD1vb.o(.text+0x1ac):app.c: undefine
d reference to `ecurve2_add'
make: *** [exe0] Error 1
I guess the solution is to use the __attribute__((C)) after each undefined
function but the problem when I compile after adding the __attribute__((C)) I
obtain this:
$ gcc -c -m32 -O2 mrec2m.c
In file included from mrec2m.c:29:
miracl.h:791: warning: `C' attribute directive ignored
miracl.h:821: warning: `C' attribute directive ignored
miracl.h:1048: warning: `C' attribute directive ignored
The problem that the C attribute is ignored.
Have you please any idea about this problem ??
Ragards,
Rania
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help