The "debugger" shows those errors? They look like pre-compiler errors...
Actually I think they are warnings so they might not hurt.

Anyway it seems that sensorboardAppp.h and sensorboard.h may have
duplicated some definitions or included each other somehow. I would
search the TOS tree for examples of the offending defs and see if
they conflict. If they are being defined in multiple files you could
but #ifndef's around them, or around the entire header if it's getting
included multiple times.

MS


Marc Romera wrote:
> hi people!
> 
> Can everybody help me? I'm doing a application and when I make it in 
> m2110 the debugger shows me this message:
> 
> In file included from /opt/MoteWorks/tos/sensorboards/mts310/Temp.nc:24,
>                  from MyAppp.nc:21:
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:26: redefinition of 
> `TOSH_ACTUAL_PHOTO_PORT'
> sensorboardAppp.h:22: previous declaration of `TOSH_ACTUAL_PHOTO_PORT'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:27: redefinition of 
> `TOSH_ACTUAL_TEMP_PORT'
> sensorboardAppp.h:23: previous declaration of `TOSH_ACTUAL_TEMP_PORT'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:36: redefinition of 
> `TOS_ADC_PHOTO_PORT'
> sensorboardAppp.h:27: previous declaration of `TOS_ADC_PHOTO_PORT'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:37: redefinition of 
> `TOS_ADC_TEMP_PORT'
> sensorboardAppp.h:28: previous declaration of `TOS_ADC_TEMP_PORT'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:53: redefinition of 
> `TOSH_SET_PHOTO_CTL_PIN'
> sensorboardAppp.h:18: previous declaration of `TOSH_SET_PHOTO_CTL_PIN'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:53: redefinition of 
> `TOSH_CLR_PHOTO_CTL_PIN'
> sensorboardAppp.h:18: previous declaration of `TOSH_CLR_PHOTO_CTL_PIN'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:53: redefinition of 
> `TOSH_READ_PHOTO_CTL_PIN'
> sensorboardAppp.h:18: previous declaration of `TOSH_READ_PHOTO_CTL_PIN'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:53: redefinition of 
> `TOSH_MAKE_PHOTO_CTL_OUTPUT'
> sensorboardAppp.h:18: previous declaration of `TOSH_MAKE_PHOTO_CTL_OUTPUT'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:53: redefinition of 
> `TOSH_MAKE_PHOTO_CTL_INPUT'
> sensorboardAppp.h:18: previous declaration of `TOSH_MAKE_PHOTO_CTL_INPUT'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:54: redefinition of 
> `TOSH_SET_TEMP_CTL_PIN'
> sensorboardAppp.h:19: previous declaration of `TOSH_SET_TEMP_CTL_PIN'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:54: redefinition of 
> `TOSH_CLR_TEMP_CTL_PIN'
> sensorboardAppp.h:19: previous declaration of `TOSH_CLR_TEMP_CTL_PIN'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:54: redefinition of 
> `TOSH_READ_TEMP_CTL_PIN'
> sensorboardAppp.h:19: previous declaration of `TOSH_READ_TEMP_CTL_PIN'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:54: redefinition of 
> `TOSH_MAKE_TEMP_CTL_OUTPUT'
> sensorboardAppp.h:19: previous declaration of `TOSH_MAKE_TEMP_CTL_OUTPUT'
> /opt/MoteWorks/tos/sensorboards/mts310/sensorboard.h:54: redefinition of 
> `TOSH_MAKE_TEMP_CTL_INPUT'
> sensorboardAppp.h:19: previous declaration of `TOSH_MAKE_TEMP_CTL_INPUT'
> make: *** [exe0] Error 1
> 
> Thanks!
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to