I get the following error when trying to compile my file for TOSSIM in
TinyOS 2.0.2.
make micaz sim
...
newdisC.nc: In function `Timer2.fired':
newdisC.nc:142: implicit declaration of function `itoa'
make: *** [sim-exe] Error 1
Note, the file compiles (and runs) fine on the real micaz.
The code in question is:
itoa(I2CMsgOut.counter, buf, 10);
strncat((char*) (I2CMsgOut.data), "I2C Message counter: ",
TOSH_DATA_LENGTH-7);
//http://www.delorie.com/djgpp/doc/libc/libc_881.html#fn_S
strncat((char*) (I2CMsgOut.data), buf, TOSH_DATA_LENGTH-27);
itoa should be included in gcc as far as I can tell, and I don't know why
it's OK in compiling for the micaz itself, but NOT for the sim.
Any help would be appreciated.
Weird.
Regards,
Kurt
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help