[Tinyos-devel] TCAST definition
Philip Levis
pal at cs.stanford.edu
Mon Feb 18 22:27:55 PST 2008
On Feb 17, 2008, at 3:20 AM, Romain Thouvenin wrote:
> Hello all,
>
> I am Romain, and just rejoined the list. You may remember me from a
> couple of months ago when I was working on the implementation of a
> routing protocol (DYMO) on TinyOS for my final study project.
> You may also know that after discussion with Omprakash, I am pleased
> to learn that my project could be useful for TinyOS and its community.
> I recently joined the net2 WG in order to include the project (called
> tymo) in the tinyos tree and maintain it.
>
> This brings me to my first compilation problem :-) Well, not the first
> one, as I first faced quite a lot of errors due to the recent
> interfaces changes in Receive, AMSend, Packet and Intercept... Anyway,
> a recent change in chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc
> introduced the TCAST macro, which can't be found by my compiler:
>
> /opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc:
> In function `IO.isOutput':
> /opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc:
> 54:
> implicit declaration of function `TCAST'
> /opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc:
> 54:
> syntax error before `volatile'
> /opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc:
> 54:
> syntax error before `)'
>
>
> Until now, I had TinyOS 2.0.1 on my laptop, and I just replaced the
> tree with the CVS one, so I guess I don't need to change any path, do
> I?
> I did not update the tools (I relied on apt to do it), could that
> be the reason?
> Or maybe you have another clue that could help me solve the problem.
>
Were you compiling for TOSSIM? TCAST is part of 2.1, which provides
optional memory checks. There was an issue with TOSSIM where TCAST
would not compile properly, but John Regehr has just fixed it. So try
cvs update -d -A?
Phil
More information about the Tinyos-devel
mailing list