Hi all:
I receive the following error on compile/verify (see below). Some similar threads have correlated it to not including Arduino.h. I have, however, included & not included it within my primary sketch and the offending .cpp file. Why would size_t not be defined within Arduino.h, and why would the error arise within this .cpp when no change has been made to it? I can provide additional info as required. I am looking for understanding as much as I am searching for the solution to my issue.
FYI--the lib I'm writing is not SimpleTimer as the error below may incline someone to believe. Thanks!
-Chris
In file included from /home/cdaringe/Desktop/arduino-1.0.5/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:47,
from /home/cdaringe/Desktop/arduino-1.0.5/hardware/arduino/cores/arduino/Arduino.h:4,
from SimpleTimer.h:32,
from SimpleTimer.cpp:27:
/home/cdaringe/Desktop/arduino-1.0.5/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/include/stddef.h:214: error: expected constructor, destructor, or type conversion before ‘typedef’
In file included from /home/cdaringe/Desktop/arduino-1.0.5/hardware/arduino/cores/arduino/Arduino.h:4,
from SimpleTimer.h:32,
from SimpleTimer.cpp:27:
/home/cdaringe/Desktop/arduino-1.0.5/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:143: error: ‘size_t’ has not been declared