Hello,everyone:
When I make the Blink apps the following errors occur. Anyone who knows the reasons? I use the fedora core 4 and IBM jdk 1.4.2. The toscheck shows no errors.
Thanks!!
[EMAIL PROTECTED] apps]# cd Blink
[EMAIL PROTECTED] Blink]# ls
BlinkM.nc Blink.nc build Makefile README SingleTimer.nc
[EMAIL PROTECTED] Blink]# make pc
mkdir -p build/pc
compiling Blink to a pc binary
ncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000 -fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb -I%T/lib/Deluge -I%T/lib/Flash -I%T/lib/Flash/STM25P -DDEFAULT_EEPROM_SIZE=0x100000 -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"root\" -DIDENT_HOSTNAME=\"ma.cs.tyut.edu.\" -DIDENT_USER_HASH=0x129a2e14L -DIDENT_UNIX_TIME=0x4482611dL -DIDENT_UID_HASH=0x0baf1edfL Blink.nc -lm
In file included from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/packet_sim.h:55,
from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/nido.h:84,
from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/hardware.h:43,
from /home/ma/TINYOSDIR/tinyos-1.x/tos/system/tos.h:144:
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:155: parse error before `struct'
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:156: parse error before `struct'
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:186: parse error before `TOS_Msg'
In file included from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/hardware.h:116,
from /home/ma/TINYOSDIR/tinyos-1.x/tos/system/tos.h:144:
/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:
/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c:147: warning: declaration of `length' shadows global declaration
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration
/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c:177: warning: declaration of `length' shadows global declaration
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration
make: *** [exe0] Error 1
[EMAIL PROTECTED] Blink]# ls
BlinkM.nc Blink.nc build Makefile README SingleTimer.nc
[EMAIL PROTECTED] Blink]# make pc
mkdir -p build/pc
compiling Blink to a pc binary
ncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000 -fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb -I%T/lib/Deluge -I%T/lib/Flash -I%T/lib/Flash/STM25P -DDEFAULT_EEPROM_SIZE=0x100000 -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"root\" -DIDENT_HOSTNAME=\"ma.cs.tyut.edu.\" -DIDENT_USER_HASH=0x129a2e14L -DIDENT_UNIX_TIME=0x4482611dL -DIDENT_UID_HASH=0x0baf1edfL Blink.nc -lm
In file included from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/packet_sim.h:55,
from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/nido.h:84,
from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/hardware.h:43,
from /home/ma/TINYOSDIR/tinyos-1.x/tos/system/tos.h:144:
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:155: parse error before `struct'
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:156: parse error before `struct'
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:186: parse error before `TOS_Msg'
In file included from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/hardware.h:116,
from /home/ma/TINYOSDIR/tinyos-1.x/tos/system/tos.h:144:
/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:
/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c:147: warning: declaration of `length' shadows global declaration
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration
/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c:177: warning: declaration of `length' shadows global declaration
/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration
make: *** [exe0] Error 1
__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
