Sunday, October 25, 2009

tinyOS make error

There is an error might be occurred when compiling.
/opt/msp430/msp430/include/stdlib.h:52: syntax error before "asm"
make: *** [exe0] Error 1


Here is a solution,

Modify Line 52 of /opt/msp430/msp430/include/stdlib.h:
extern void exit(int) __asm__(”__stop_progExec__”) __ATTR_CONST__;

Into
extern void exit(int) __ATTR_CONST__;
void exit(int a) __asm__("__stop_progExec__");

No comments: