I am unable to compile a simple program with Serial.begin
i get this error
applet/core.a(Print.o): In function Print::print(String const&)': Print.cpp:(.text+0xa6): undefined reference to String::operator[](unsigned int) const'
Anyone able to help??
Uncommenting some lines in Print.cpp allow it to compile but it still doesn't work
This problem surfaced last week. Unfortunately the schmuck failed to indicate if my suggestion helped. Regardless of the advice I give, if you get past this problem, PLEASE report back.
i'm not using an arduino ide.. i followed the OpenBSD CLI steps and am compiling in ubuntu 10.10
Could it be a problem with the linking in the Makefile?
i had to mangle the bsdmakefile a bit but it compiles something simple with blinkin lights fine.
The problem is a String class that is out-of-date relative to Serial. You need to locate the WString.h and WString.ccp files (or corresponding object file) that don't belong and delete them.
In other words, search for WString.h in a String subdirectory. If you find one, delete it. Repeat for WString.ccp.