On Oct 7, 2006, at 11:48 PM, Tahir Azim wrote:

Hi,

While trying to compile my code in tinyos 2.x with target "micaz sim-cygwin", I get the following error in the end:

C:/cygwin/opt/tinyos-2.x-new/tinyos-2.x/tos/lib/tossim/SimMoteP.nc: In function
`__nesc_nido_initialise':
C:/cygwin/opt/tinyos- 2.x-new/tinyos-2.x/tos/lib/tossim/SimMoteP.nc: 1539: error:
assignment of read-only location
C:/cygwin/opt/tinyos-2.x-new/tinyos-2.x/tos/lib/tossim/SimMoteP.nc: 1540: error:
assignment of read-only location

I say "in the end" because there were many other errors occuring previously, but I managed to get rid of all of them, and this is a new one that finally surfaced. I can't figure out what this error means since it doesn't give any real context from where it emerged ( SimMoteP.nc has only ~155 lines). Can someone give a hint or a guess as to what can possibly cause this error?


This is a function autogenerated by nesC so that TOSSIM can look up variables by name. Because it doesn't belong in a file, the line number directives get confused.

Let me guess: you are declaring a const variable? Use an enum instead.

Phil

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

Reply via email to