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?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to