Hi,
I'm trying to keep up to date with svn repository, which at this time is at revision 1099. I'm usiing CLI.
The problem comes when I try to compile something with Serial.begin inside setup(), like this:
void setup() {
Serial.begin(38400);
}
The error:
dbolgheroni@mob-compaq:~/tcc/arduino/projects/perlduino$ make
test -d applet || mkdir applet
echo '#include "WProgram.h"' > applet/perlduino.cpp
cat perlduino.pde >> applet/perlduino.cpp
cat ../../libs/hardware/cores/arduino/main.cpp >> applet/perlduino.cpp
/usr/local/bin/avr-g++ -mmcu=atmega2560 -I. -DF_CPU=16000000 -I../../libs/hardware/cores/arduino -Os -o applet/perlduino.elf applet/perlduino.cpp -L. applet/core.a -lm
applet/core.a(Print.o): In function `Print::print(String const&)':
Print.cpp:(.text+0xa6): undefined reference to `String::operator[](unsigned int) const'
*** Error code 1
Stop in /home/dbolgheroni/tcc/arduino/projects/perlduino (line 202 of BSDmakefile).
dbolgheroni@mob-compaq:~/tcc/arduino/projects/perlduino$
This doesn't happen if I remove Serial.begin, nor if I use a more ancient revision (like revision 808).
What's wrong with Serial.begin in newer revisions? Can't figure it out by just looking at the error message.
Thank you.