Hi, I have written a small interface, but when I tried to compile it, I
receive this error:


[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/TestMessage$ make micaz
mkdir -p build/micaz
   compiling TestMessage to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow
-Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
-fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/micaz/wiring-check.xml TestMessage.nc -lm
In file included from TestMessageM.nc:2,
                from TestMessage.nc:7:
In interface `BlackList':
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:3: only commands and events can
be defined in interfaces
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:3: warning: return-type defaults
to `int'
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:3: syntax error before `insert'
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:4: only commands and events can
be defined in interfaces
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:4: warning: return-type defaults
to `int'
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:4: redefinition of `result_t'
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:4: syntax error before `delete'
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:5: only commands and events can
be defined in interfaces
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:5: warning: return-type defaults
to `int'
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:5: redefinition of `result_t'
/opt/tinyos-2.x/tos/interfaces/BlackList.nc:5: syntax error before `clear'
In file included from /opt/tinyos-2.x/tos/system/BlackListMngC.nc:9,
                from TestMessage.nc:8:
In component `BlackListP':
/opt/tinyos-2.x/tos/system/BlackListP.nc:3: too few arguments to interface
`BL'
/opt/tinyos-2.x/tos/system/BlackListP.nc: In function
`ObjectInsert.runTask':
/opt/tinyos-2.x/tos/system/BlackListP.nc:10: `BlackListMng' undeclared
(first use in this function)
/opt/tinyos-2.x/tos/system/BlackListP.nc:10: (Each undeclared identifier is
reported only once
/opt/tinyos-2.x/tos/system/BlackListP.nc:10: for each function it appears
in.)
/opt/tinyos-2.x/tos/system/BlackListP.nc: At top level:
/opt/tinyos-2.x/tos/system/BlackListP.nc:14: syntax error before `insert'
In component `TestMessage':
/opt/tinyos-2.x/tos/system/BlackListMngC.nc:1: expected component
`BlackListMngC', but got component 'BlackListC'
In component `BlackListC':
/opt/tinyos-2.x/tos/system/BlackListMngC.nc:14: cannot find `BL'
/opt/tinyos-2.x/tos/system/BlackListMngC.nc:17: cannot find `BlackListMng'
make: *** [exe0] Error 1


It seems that the interface are not correctly written....
But I wrote a good interface file
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to