Go Down

Topic: Error when starting up Arduino BT? (Read 637 times) previous topic - next topic

joshuajnoble

When I start up the Arduino IDE and set the board to Arduino BT I see the following errors spit out:

DateTimeStrings.cpp:32: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:33: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:34: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:35: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:36: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:37: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:38: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:39: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:40: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:41: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:42: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:43: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:45: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:56: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:57: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:58: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:59: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:60: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:61: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:62: warning: only initialized variables can be placed into program memory area
DateTimeStrings.cpp:64: warning: only initialized variables can be placed into program memory area

What's different about the BT that these lines:

#if defined dt_LONG_MONTH_STRINGS
char monthStr0[] PROGMEM = "January";
char monthStr1[] PROGMEM = "February";
char monthStr2[] PROGMEM = "March";
char monthStr3[] PROGMEM = "April";
char monthStr4[] PROGMEM = "May";
char monthStr5[] PROGMEM = "June";
char monthStr6[] PROGMEM = "July";
char monthStr7[] PROGMEM = "August";
char monthStr8[] PROGMEM = "September";
char monthStr9[] PROGMEM = "October";
char monthStr10[] PROGMEM = "November";
char monthStr11[] PROGMEM = "December";

cause such a fuss? Just curious, thanks!
your politeness and courtesy are much appreciated

unwiredben

#1
Apr 24, 2009, 09:13 am Last Edit: Apr 24, 2009, 09:13 am by unwiredben Reason: 1
This warning seems to be a compiler bug triggered when building C++ code. ┬áSee http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734 for the bug report.  It seems to be harmless but annoying.

Go Up