sshirokov/stltwalker

Compilation issue on Raspbian (Debian Linux)

Closed this issue · 0 comments

I am getting the following error when trying to compile for Debian Linux specifically Raspbian on a Raspberry Pi.

/home/pi/src/stltwalker/src/pack.c: In function ‘object_bounds’:
/home/pi/src/stltwalker/src/pack.c:20:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
/home/pi/src/stltwalker/src/pack.c:20:3: note: use option -std=c99 or -std=gnu99 to compile your code
/home/pi/src/stltwalker/src/pack.c:22:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
make: *** [/home/pi/src/stltwalker/src/pack.o] Error 1

I believe it has to do with the preferred terse syntax of initialization of the index in the for loop. Would like to adjust this in order to allow more broad compilation, but wanted to ask first.