longcw / faster_rcnn_pytorch

Faster RCNN with PyTorch
MIT License
1.7k stars 466 forks source link

error: ‘for’ loop initial declarations are only allowed in C99 mode #78

Closed smallnine9 closed 1 year ago

smallnine9 commented 5 years ago

@longcw 我在./make.sh 的时候,出现了for循环报错,请问作者知道这种情况怎么解决么

Luofan-KK commented 5 years ago

报错是因为THmath.h文件里写的方程在for循环里新定义了变量。打开这个文件,然后把每个for循环都改一下