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.zip
The error reads:
In file included from /usr/lib/gcc/avr/4.7.0/../../../avr/include/util/delay.h:44:0,
/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 ?