Code: Select all
In file included from /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:44:0,
from /usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:37,
from /home/defect/Downloads/arduino-0023/hardware/arduino/cores/arduino/wiring_private.h:30,
from /home/defect/Downloads/arduino-0023/hardware/arduino/cores/arduino/WInterrupts.c:34:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:427:15: error: expected identifier or '(' before 'double'
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:427:15: error: expected ')‚' before '>=' token
- 1. Open a new Terminal window.
2. Open the file in gedit.3. Enter your password.Code: Select all
sudo gedit /usr/lib/avr/include/math.h
4. Scroll down to line 427 or so, and add the line:so it looks like:Code: Select all
#undef round
5. Save and close the file. Arduino should now compile without error.Code: Select all
#undef round extern double round (double __x) __ATTR_CONST__; #define roundf round...
This held me up for 2 days. Hopefully you found it quicker.