Paul,
Arduino 1.5.7 ships with avr gcc 4.8.1 which requires that all AVR progmem data be const.
The current DateStrings.cpp in the Time library no longer compiles.
The issue seems to be the declaration for the progmem arrays of pointers.
Not only do the pointers in the array need to be const (which PGM_P takes care of) but the
array itself needs to be const.
It appears that the declarations need an additional const before the array name to make the array itself
const.
I have attached an updated DateStrings.cpp that has been updated.
Once the correct declaration is used, it works with avr gcc 4.8.1 as well
as the older versions of the compiler so it works with IDE 1.5.7 as well as pre IDE 1.5.7
You can read more about this in this arduino forum thread:
http://forum.arduino.cc/index.php?topic=254424.0
--- bill
View attachment DateStrings.cpp
Arduino 1.5.7 ships with avr gcc 4.8.1 which requires that all AVR progmem data be const.
The current DateStrings.cpp in the Time library no longer compiles.
The issue seems to be the declaration for the progmem arrays of pointers.
Not only do the pointers in the array need to be const (which PGM_P takes care of) but the
array itself needs to be const.
It appears that the declarations need an additional const before the array name to make the array itself
const.
I have attached an updated DateStrings.cpp that has been updated.
Once the correct declaration is used, it works with avr gcc 4.8.1 as well
as the older versions of the compiler so it works with IDE 1.5.7 as well as pre IDE 1.5.7
You can read more about this in this arduino forum thread:
http://forum.arduino.cc/index.php?topic=254424.0
--- bill
View attachment DateStrings.cpp