Hello, kind of new to Arduino and I have run into some problems.
I have an Arduino Diecimila board and have been able to compile the basic examples and transferred to the Arduino and got them to run, but now when I need to compile a sketch that uses the EEPROM library i get an error:
EEPROM/EEPROM.cpp.o: In function `EEPROMClass::read(int)':
/usr/share/arduino-1.0/libraries/EEPROM/EEPROM.cpp:42: undefined reference to `__eewr_byte_m168'
/usr/share/arduino-1.0/libraries/EEPROM/EEPROM.cpp:42: undefined reference to `__eerd_byte_m168'
I use Gentoo Linux, Arduino 1.0. I tried with avr-libc 1.7.1 and 1.8.0, also gcc 4.3.6 and a later version (can't remember the exact version I tried now, sorry), the error stayed the same with all versions.
I tried opening the examples that are in the Arduino EEPROM library folder, they wouldn't compile either, same error.
I tried opening examples from the other libraries and they compiled, so this error seems limited to the EEPROM library.
I checked that there is a eeprom.h present in the avr include folder, and that gcc searches in that folder.
I have no idea what to do to continue troubleshooting these compile issues, can anyone point me in the right direction or suggest anything further I can check to find out why EEPROM isn't usable?
Thanks in advance.