I am tying to change my compiling environment from tinyos1.x to tinyos-2.x

But when I complie the "BlinkToRadio"

The error occurs:

/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.h:63: syntax error before `FILE'
/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.h:64: syntax error before `FILE'
In file included from /opt/tinyos-2.x/tos/lib/tossim/ActiveMessageC.nc:51,

In component `CpmModelC':
/opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc: In function `sim_gain_ack_handle':
/opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:178: implicit declaration of 
function `sim_mote_is_on'
/opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc: In function 
`enqueue_receive_event':
/opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:384: implicit declaration of 
function `sim_mote_is_on'
make: *** [exe0] Error 1

--------------------------------------------------------------------------------------------------------------------

1.

/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.h:63: syntax error before `FILE'

/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.h:64: syntax error before `FILE'

"sim_tossim.h"
    #include<stdio.h>
     ......
    void sim_add_channel(char* channel, FILE* file);//syntax error here
    bool sim_remove_channel(char* channel, FILE* file);////syntax error here
    ......

It seems that the comlier did not find the FILE typedef or someing....

2.
/opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc: In function `sim_gain_ack_handle':

/opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:178: implicit declaration of 
function `sim_mote_is_on'

I  have no idea to get rid of this error........

This is my ".Platform" file,I just copy that from tinyos-1.x and edit the path 
to tinyos-2.x,
maybe I lose something or wrong here.

push( @includes, qw(
  %T/platforms/telosb
  %T/platforms/telos
  %T/platform/msp430
  %T/platform/msp430/adc
  %T/platform/msp430/dac
  %T/platform/msp430/dma
  %T/chips/cc2420
  %T/chips/cc2420/alarm
  %T/chips/cc2420/control
  %T/chips/cc2420/csma
  %T/chips/cc2420/interfaces
  %T/chips/cc2420/link
  %T/chips/cc2420/lowpan
  %T/chips/cc2420/lpl
  %T/chips/cc2420/packet
  %T/chips/cc2420/receive
  %T/chips/cc2420/spi
  %T/chips/cc2420/transmit
  %T/chips/cc2420/unique
  %T/chips/cc2420/security
  %T/chips/msp430
  %T/chips/msp430/adc12
  %T/chips/msp430/dma
  %T/chips/msp430/pins
  %T/chips/msp430/timer
  %T/chips/msp430/usart
  %T/chips/msp430/sensors
  %T/lib/adc
  %T/lib/timer
  %T/lib/serial
  %T/lib/power
  %T/lib/tossim
  %T/lib/CC2420Radio
  %T/lib/Flash/STM25P
  %T/lib/Flash
  %T/lib/byte_radio
  %T/types
) );










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

Reply via email to