This is probably due to a missing flag -fnesc-nido-tosnodes in your
cricket_pc.target file under tinyos-1.x/tools/make directory. This is
how my cricket_pc.target file looks like,

PLATFORM = cricket_pc
SENSORBOARD ?= micasb
OPTFLAGS = -g -O0
NESC_NIDO_TOSNODES ?= 1000
PFLAGS += -pthread -fnesc-nido-tosnodes=$(NESC_NIDO_TOSNODES) -fnesc-simulate

BUILD_DEPS ?= exe



cricket_pc: $(BUILD_DEPS)
        @:


I hope it helps.

On 3/3/08, prashan wanigasekara <[EMAIL PROTECTED]> wrote:
> When I compile for TOSSIM i get the following errors (I am using
> tinyos-1.xand simulating for the Cricket platform)
>
> In file included from /opt/tinyos-1.x/tos/platform/cricket_pc/hardware.h:43,
> from /opt/tinyos-1.x/tos/system/tos.h:144:
> /opt/tinyos-1.x/tos/platform/pc/nido.h:63: `TOSH_NUM_NODES' undeclared here
> (not in a function)
> /opt/tinyos-1.x/tos/platform/pc/nido.h:63: enumerator value for `TOSNODES'
> not integer constant
> In component `Main':
> /opt/tinyos-1.x/tos/platform/pc/Main.nc:55: cannot find `PowerState'
> make: *** [build/cricket_pc/main.exe] Error 1
> [EMAIL PROTECTED]:/opt/tinyos-1.x/apps/Blink$
>
>
> These arise when I compile for the Blink application. I am not sure but I
> think these are general errors that others would encounter for any platform.
> Can anybody help me to fix these errors. I greatly appreciate your help.
>
> prashan
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to