Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

At DateStrings.cpp #5

Open
SPineapple opened this issue Apr 25, 2016 · 3 comments
Open

At DateStrings.cpp #5

SPineapple opened this issue Apr 25, 2016 · 3 comments

Comments

@SPineapple
Copy link

Hi johnmccombs,
I am pleased that your coding is helping, and I'm using it for my project, I am using your Time library for my Arduino POV clock but there's a problem I'm facing in the DataStrings.cpp, as I am still learning in Arduino and I'd like to know what I've done wrong, and if there's any suggestion to solve it. And here's the compilation error I'm getting, i pasted here part of it, but it continues the same pattern of error:

In file included from /Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:10:0:
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:18:18: error: variable 'monthStr1' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char monthStr1[] PROGMEM = "January";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:19:18: error: variable 'monthStr2' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char monthStr2[] PROGMEM = "February";
^

/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:36:26: error: variable 'monthShortNames_P' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char monthShortNames_P[] PROGMEM = {"ErrJanFebMarAprMayJunJulAugSepOctNovDec"};
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:38:16: error: variable 'dayStr0' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr0[] PROGMEM = "Err";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:39:16: error: variable 'dayStr1' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr1[] PROGMEM = "Sunday";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:40:16: error: variable 'dayStr2' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr2[] PROGMEM = "Monday";

/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:45:16: error: variable 'dayStr7' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr7[] PROGMEM = "Saturday";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:47:20: error: variable 'dayNames_P' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PGM_P dayNames_P[] PROGMEM ={dayStr0,dayStr1,dayStr2,dayStr3,dayStr4,dayStr5,dayStr6,dayStr7};
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:48:24: error: variable 'dayShortNames_P' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayShortNames_P[] PROGMEM = "ErrSunMonTueWedThrFriSat";
^
exit status 1
Error compiling.

@johnmccombs
Copy link
Owner

Hi,

please note that I’m not the author of any of the code in the libraries repo. The libraries may be well out of date and you should obtain the library from the original source.

regards, John

On 25/04/2016, at 10:29 PM, SPineapple [email protected] wrote:

Hi johnmccombs,
I am pleased that your coding is helping, and I'm using it for my project, I am using your Time library for my Arduino POV clock but there's a problem I'm facing in the DataStrings.cpp, as I am still learning in Arduino and I'd like to know what I've done wrong, and if there's any suggestion to solve it. And here's the compilation error I'm getting, i pasted here part of it, but it continues the same pattern of error:

In file included from /Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:10:0:
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:18:18: error: variable 'monthStr1' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char monthStr1[] PROGMEM = "January";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:19:18: error: variable 'monthStr2' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char monthStr2[] PROGMEM = "February";
^

/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:36:26: error: variable 'monthShortNames_P' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char monthShortNames_P[] PROGMEM = {"ErrJanFebMarAprMayJunJulAugSepOctNovDec"};
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:38:16: error: variable 'dayStr0' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr0[] PROGMEM = "Err";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:39:16: error: variable 'dayStr1' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr1[] PROGMEM = "Sunday";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:40:16: error: variable 'dayStr2' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr2[] PROGMEM = "Monday";

/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:45:16: error: variable 'dayStr7' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr7[] PROGMEM = "Saturday";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:47:20: error: variable 'dayNames_P' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PGM_P dayNames_P[] PROGMEM ={dayStr0,dayStr1,dayStr2,dayStr3,dayStr4,dayStr5,dayStr6,dayStr7};
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:48:24: error: variable 'dayShortNames_P' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayShortNames_P[] PROGMEM = "ErrSunMonTueWedThrFriSat";
^
exit status 1
Error compiling.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub #5

@SPineapple
Copy link
Author

Hello,
Sorry to bother you, but do you know where I possibly get contact with the author of the library or know where the original source came from,
And Thanks,

@johnmccombs
Copy link
Owner

It's probably this https://github.com/michaelmargolis/arduino_time

Cheers, John

On 26/04/2016, at 11:20 PM, SPineapple [email protected] wrote:

Hello,
Sorry to bother you, but do you know where I possibly get contact with the author of the library or know where the original source came from,
And Thanks,


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants