-
Notifications
You must be signed in to change notification settings - Fork 111
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
Error compiling #9
Comments
I am getting the same error on a linux box running 1.0.5 - but I uploaded the library to codebender.cc |
I think it's something related with Arduino 1.6. I installed the 1.0.6 version and it works! |
Hello, It doesn't compile with modern compilers because data in flash (PROGMEM) must be declared as const. But it's easy to fix : 1 - in examples add 'const' on each PROGMEM array declarations |
hi @sylvainf , i tried your fix, changed this in the "getting started" example: however, then i get this error: error: invalid conversion from 'const uint8_t* {aka const unsigned char_}' to 'uint8_t_ {aka unsigned char_}' [-fpermissive] don't know what to do now. any ideas? (i'm running arduino ide 1.5.8) |
Ok, you must modify the prototype too : in talkie.h replace "void say(uint8_t* address);'' by "void say(const uint8_t* address);" |
Hi, I'm having problems when I tried to compile the examples codes.
Build options changed, rebuilding all
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from Vocab_US_TI99.ino:19:
Vocab_US_TI99.ino:32:31: error: variable 'spARE' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Vocab_US_TI99.ino:138:31: error: variable 'spHELLO' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Vocab_US_TI99.ino:299:31: error: variable 'spTEXAS_INSTRUMENTS' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Vocab_US_TI99.ino:304:31: error: variable 'spTHE' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Vocab_US_TI99.ino:309:31: error: variable 'spTHESE' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Vocab_US_TI99.ino:367:31: error: variable 'spWORDS' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Error compiling.
Is this issue related to my Arduino version (1.60). I'm on OSX 10.9.5. I hope you can help me, thanks.
The text was updated successfully, but these errors were encountered: