Closed Zachary4biz closed 4 years ago
Hi, I met the problem when executing "make"
./src/classifier.c:756:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
I have done some google and tried add CFLAGS=-std=c99 or CFLAGS = -Wall -std=c99 at the top of Makefile, but it didn't work.
CFLAGS=-std=c99
CFLAGS = -Wall -std=c99
Makefile
Maybe you can offer some advice?
Because this Makefile also involved cpp, we should add param -std=c99 at line157 (for c only) instead of CFLAGS=-std=c99 at the first line.
-std=c99
Hi, I met the problem when executing "make"
I have done some google and tried add
CFLAGS=-std=c99
orCFLAGS = -Wall -std=c99
at the top ofMakefile
, but it didn't work.Maybe you can offer some advice?