averdude error on Linux

OK, trying to relearn Linux after 10+ years, installed Arduino on Wheezy on my Raspberry Pi and when I try to compile a sketch that works fine on Win7 I get this error:

In file included from /usr/lib/gcc/avr/4.7.2/../../../avr/include/util/delay.h:44:0, from /usr/lib/gcc/avr/4.7.2/../../../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.2/../../../avr/include/math.h:426:15: error: expected identifier or ‘(’ before ‘double’ /usr/lib/gcc/avr/4.7.2/../../../avr/include/math.h:426:15: error: expected ‘)’ before ‘>=’ token

Sorry, can't figure out screen shots or copying for the forum yet. Anyway, 1: How do I find this file with all the truncations in the path? 2: Can I edit this file to correct these errors?

A small embedded ARM processor with 256MB of ram sure makes you appreciate how far computers have come in the last 15 years. Thanks for looking. TomJ

• Locate [u]Arduino.h[/u]

• Open it using your favourite text / source editor.

• Locate the definition for [u]round[/u]

• Remove the definition for [u]round[/u]

• Save and close Arduino.h

• Try to compile

Sorry, for digging old tobic, but I've got the same error, with ubuntu 13.04 on Arduino as ISP mode (trying to use attiny 2313). Deleting round definition from arduino.h didn't work for me :/

Do you've got any idea?;/

Which core are you using?