Sounds like it doesn't know the definition of message_t
(or other typedefs)
#include "message.h" at the top of CC2420TransmitP and see
if that fixes the issue.
-David
On Fri, 22 Jun 2007 15:35:10 +0200
"Min Guo" <[EMAIL PROTECTED]> wrote:
I get problem when I try to use the component
CC2420TransmitC. The
compilation error comes even when I did not connect the
component to any
others. I did not change anything in the component. Does
anyone knows why
and how to solve the problem?
make tmote
mkdir -p build/telosb
compiling BlinkAppC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul
-Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb
-fnesc-cfile=build/telosb/app.c -board= BlinkAppC.nc
-lm
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420TransmitC.nc:45,
from BlinkAppC.nc:46:
In interface `CC2420Transmit':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420Transmit.nc:49:
syntax error before
`*'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420Transmit.nc:71:
syntax error before
`*'
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420TransmitC.nc:46,
from BlinkAppC.nc:46:
In interface `RadioBackoff':
/opt/tinyos-2.x/tos/chips/cc2420/RadioBackoff.nc:72:
syntax error before `*'
/opt/tinyos-2.x/tos/chips/cc2420/RadioBackoff.nc:79:
syntax error before `*'
/opt/tinyos-2.x/tos/chips/cc2420/RadioBackoff.nc:87:
syntax error before `*'
/opt/tinyos-2.x/tos/chips/cc2420/RadioBackoff.nc:94:
syntax error before `*'
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420TransmitC.nc:47,
from BlinkAppC.nc:46:
In interface `RadioTimeStamping':
/opt/tinyos-2.x/tos/interfaces/RadioTimeStamping.nc:39:
syntax error before
`message_t'
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420TransmitC.nc:54,
from BlinkAppC.nc:46:
In component `CC2420TransmitP':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitP.nc:170:
conflicting types
for `Send.send'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420Transmit.nc:49:
previous declaration
of `Send.send'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitP.nc:767:
conflicting types
for `TimeStamp.transmittedSFD'
/opt/tinyos-2.x/tos/interfaces/RadioTimeStamping.nc:39:
previous declaration
of `TimeStamp.transmittedSFD'
make: *** [exe0] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help