stm32_bare_lib
stm32_bare_lib copied to clipboard
error: 'for' loop initial declarations are only allowed in C99 or C11 mode
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
Adding
-std=gnu11
to CCFLAGS in Makefile got me past this error.