> 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:
이런식으로 컴파일 에러가 나고 있는데 SimModeP.nc중 코드 1539, 1540 번째 줄이 에러가 나는거라고 나왔다.
근데 정작 SimModeP.nc는 180줄 정도 밖에 안되는데..
왜 문제 인가 메일링 리스트를 찾아보면
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
필립 리바이스님께서 직접 답변해주신 글이 하나 있다.
아마 TOSSIM으로 돌리려면 코드를 constant variable을 써서 작성하지말고 되도록이면
enum 스타일로 작성해야 하는 것같다.
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-October/019991.html
덧글