On Aug 14, 2007, at 7:13 PM, J. Ryan Stinnett wrote:

I just started porting some code over from 1.x to 2.x, and I'm getting a strange error message during compilation:

In file included from /opt/tinyos-2.x/tos/chips/atm128/timer/ Atm128AlarmAsyncC.nc:32, from /opt/tinyos-2.x/tos/platforms/mica/ AlarmCounterMilliP.nc:33, from /opt/tinyos-2.x/tos/platforms/mica/sim/ HilTimerMilliC.nc:41,
                 from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41,
                 from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
                 from BigPackC.nc:48:
In component `Atm128AlarmAsyncP':
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128AlarmAsyncP.nc: In function `setInterrupt': /opt/tinyos-2.x/tos/chips/atm128/timer/Atm128AlarmAsyncP.nc:102: `OCF0' undeclared (first use in this function) /opt/tinyos-2.x/tos/chips/atm128/timer/Atm128AlarmAsyncP.nc:102: (Each undeclared identifier is reported only once /opt/tinyos-2.x/tos/chips/atm128/timer/Atm128AlarmAsyncP.nc:102: for each function it appears in.)

I'm only getting this error when I compile this specific app, and only if I use "make micaz sim" instead of "make micaz". I can't see why this would be happening for only this one app. Any ideas?

This typically happens when there's a missing #include. It doesn't always appear because sometimes another component #includes it first. Try changing the order you name components? Another option is to add #include<hardware.h> to Atm128AlarmAsyncP.nc.

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to