linuxcnc targets gnu11: https://github.com/LinuxCNC/linuxcnc/blob/master/src/Makefile#L256
looks like there is a flag missing somewhere. our build system is a mess. On 09.07.23 02:10, andy pugh wrote:
I recently merged a PR to add a "limit_axis" component. I checked that it compiles on my test PC (running Buster) but I just now found that it doesn't compile on the VM that I sometimes use when I need a GUI. On that machine I see: hal/components/limit_axis.comp:67:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode hal/components/limit_axis.comp:67:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code make[2]: *** [scripts/Makefile.build:304: /home/andypugh/linuxcnc-dev/src/objects/hal/components/limit_axis.o] Error 1 make[1]: Leaving directory '/usr/src/linux-headers-4.19.195-rtai-amd64' Which version of C does LinuxCNC target?
_______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers