I guess I understand now better how this should work.
I am trying to compile "pcbopt.c" doing this:
Code:
cc -o pcbopt -lm emit_gcode.c pcbopt.c
But I get this error:
Code:
/tmp/cckmHpif.o: In function `emit_segment':
emit_gcode.c:(.text+0x3f0): undefined reference to `bit_width'
/tmp/cckmHpif.o: In function `emit_gcode':
emit_gcode.c:(.text+0xcc3): undefined reference to `bit_width'
collect2: ld returned 1 exit status
I would also like to know if this code can work with gerber files generated from KiCad...