2021-07-29 12:39 PM
error: 'for' loop initial declarations are only allowed in C99 or C11 mode
223 | for(uint8_t i=0; i<offset;i++)
error: 'for' loop initial declarations are only allowed in C99 or C11 mode
234 | for(uint8_t i=0; i<offset;i++)
error: 'for' loop initial declarations are only allowed in C99 or C11 mode
250 | for(uint8_t i=0; i<strlen(stringArray) && i<16; i++)
Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
I got it to compile yesterday with no errors, just didn't print to the LCD.
These errors happened when I deleted all and started over.
What am I missing?
And, thanks in advance.
2021-07-29 12:42 PM
For K&R C you'd need the uint8_t i; outside of the for statement and at the beginning of a compound block, ie immediately after the opening brace {
2021-07-29 01:19 PM
Go into your project properties and make sure you're compiling with C99 or later. Not sure why yours got changed.
2021-07-29 01:45 PM
Thanks TDK, that did the trick. Compiles fine.
Still doesn't print to my LCD yet.
I did do the LED blink thing so I am not a total nube!
Will delete all and will re-create and see what happens.
Thanks for the input!