Hi,
I get compile errors when trying to build a simple sketch for the ATtiny2313 with the core libs which I downloaded from here:
http://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0015.zipThe error reads:
In file included from /usr/lib/gcc/avr/4.7.0/../../../avr/include/util/delay.h:44:0,
from /usr/lib/gcc/avr/4.7.0/../../../avr/include/avr/delay.h:37,
from /usr/share/arduino/hardware/tiny/cores/tiny/wiring_private.h:32,
from /usr/share/arduino/hardware/tiny/cores/tiny/WInterrupts.c:37:
/usr/lib/gcc/avr/4.7.0/../../../avr/include/math.h:427:15: error: expected identifier or ‘(’ before ‘double’
/usr/lib/gcc/avr/4.7.0/../../../avr/include/math.h:427:15: error: expected ‘)’ before ‘>=’ token
I followed several suggestions uncommenting the line in math.h (
http://code.google.com/p/arduino-tiny/issues/detail?id=29):
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
That did not help me either because that produces another error:
/usr/share/arduino/hardware/tiny/cores/tiny/HardwareSerial.cpp:94:15: error: attempt to use poisoned "SIG_USART0_RECV"
I compile against avr 4.7.0 with Arduino 1.0.1 on Ubuntu 12.10.
Maybe it's the gcc-avr version which produces the error ?
Did anybody solve the problem with the above mentioned libs under Arduino 1.0.1 ?
Regards
AgeBee