Hello friends,
Though I never used TOSSIM earlier as I always worked with 4 mica2 motes I
never paid any attention to this in my installation. But as I want to work
with other platforms I need to run TOSSIM on my system. But when i tried to
compile Blink or any other code I get the error as shown below
/opt/tinyos-1.x/apps/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-simul
ate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc
-fnesc-cfile=b
uild/pc/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"Blink\"
-DIDENT_USER_ID=\"mu
rtuza\" -DIDENT_HOSTNAME=\"hst000053271um\" -DIDENT_USER_HASH=0x78aedb75L
-DIDE NT_UNIX_TIME=0x4685e1a9L -DIDENT_UID_HASH=0x9e479d49L Blink.nc -lm
In file included from /opt/tinyos-1.x/tos/platform/pc/packet_sim.h:55,
from /opt/tinyos-1.x/tos/platform/pc/nido.h:84,
from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43,
from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/types/AM.h:155: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h:156: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
/opt/tinyos-1.x/tos/types/AM.h:186: parse error before `TOS_Msg'
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:116,
from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:147: warning: declaration of
`length' shadows global declaration
/opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed
declaration
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:177: warning: declaration of
`length' shadows global declaration
/opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed
declaration
make: *** [exe0] Error 1
I am using Tinyos-1.x ( With complete CVS update), nesc-1.1, on a
SUSE-10.2linux distribution.
As I want to learn programming of platforms other than mica2 I wish to use
TOSSIM( i dont have these motes). Can anyone tell me wht could be wrong. Is
it the installation of tinyos-1.x or some missing files etc.
i looked for similar problem on archives but didnt find an answer.
Thanking You
MMA
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help