BleuLlama / TinyBasicPlus

A C implementation of Tiny Basic, with a focus on support for Arduino
401 stars 117 forks source link

const in order to be put into read-only #12

Closed gregwinn closed 6 years ago

gregwinn commented 9 years ago

I am having an issue with getting this to compile on 1.6.4...

variable 'keywords' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

I have tried adding 'const' to:

static unsigned char keywords[] PROGMEM

This does not work

const static unsigned char keywords[] PROGMEM

Anyone have any idea how to fix this??

bgolab commented 9 years ago

I used 'const' keyword in front of all variables affected by this issue but new errors appeared. See #13 -bgolab

bgolab commented 9 years ago

arduino-1.5.6-r2 - works fine - no compilation errors. arduino-1.5.7 and onwards is affected. It seems that the issue is related to gcc 4.8.1 introduced in arduino-1.5.7 -bgolab

BleuLlama commented 9 years ago

ok. i'll check it out

On Mon, Jun 22, 2015 at 4:43 PM, bgolab notifications@github.com wrote:

arduino-1.5.6-r2 - works fine - no compilation errors. arduino-1.5.7 and onwards is affected. It seems that the issue is related to gcc 4.8.1 introduced in arduino-1.5.7 -bgolab

— Reply to this email directly or view it on GitHub https://github.com/BleuLlama/TinyBasicPlus/issues/12#issuecomment-114256629 .

Scott Lawrence yorgle@gmail.com

BleuLlama commented 6 years ago

Fixed with recent releases