theAIGuysCode / YOLOv3-Cloud-Tutorial

Everything you need in order to get YOLOv3 up and running in the cloud. Learn to train your custom YOLOv3 object detector in the cloud for free!
90 stars 78 forks source link

C99 mode problem #1

Closed Zachary4biz closed 4 years ago

Zachary4biz commented 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.

Maybe you can offer some advice?

Zachary4biz commented 4 years ago

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.