I just received my Arduino Uno today, and after setting up version 1.0.1 for linux64 on my 64 bit (only) Linux system, I attempted to compile the “blinking LED” sketch as documented in Banzi, p. 30.
The following errors occurred:
In file included from /opt/arduino-1.0.1/hardware/arduino/cores/arduino/Print.h:25,
/usr/include/stdio.h:432: error: expected initializer before ‘throw’
/usr/include/stdio.h:488: error: expected initializer before ‘throw’
The version of gcc installed as reported by the command “gcc --version” is:
gcc (GCC) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Are there some environment variable overrides I must specify in arduino-1.0.1/arduino which I don’t know about? Somehow the starting script didn’t pick up on the file arduino-1.0.1/hardware/tools/avr/lib/avr/include/stdio.h and use that instead of /usr/include/stdio.h.