stm32_bare_lib icon indicating copy to clipboard operation
stm32_bare_lib copied to clipboard

error: 'for' loop initial declarations are only allowed in C99 or C11 mode

Open uid89626 opened this issue 6 years ago • 1 comments

examples/benchmark_arithmetic/benchmark_arithmetic_main.c:32:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < iters; ++i) { ^ examples/benchmark_arithmetic/benchmark_arithmetic_main.c:32:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code

uid89626 avatar Feb 26 '18 20:02 uid89626

Adding -std=gnu11 to CCFLAGS in Makefile got me past this error.

robrussell avatar Jan 21 '19 05:01 robrussell