StefanSchippers / xschem

A schematic editor for VLSI/Asic/Analog custom designs, netlist backends for VHDL, Spice and Verilog. The tool is focused on hierarchy and parametric designs, to maximize circuit reuse.
Other
297 stars 21 forks source link

tcleval called with two arguments instead of 1 when on windows. #216

Closed Kreijstal closed 4 weeks ago

Kreijstal commented 4 weeks ago
# gcc -c -I /ucrt64/include/tk8.6/tk-private/win -I /ucrt64/include/tk8.6/tk-private/generic draw.c
draw.c: In function 'print_image':
draw.c:157:8: error: too many arguments to function 'tcleval'
  157 |   else tcleval("convert_to_png {%s} plot.png", psfile);
      |        ^~~~~~~
In file included from draw.c:23:
xschem.h:1557:20: note: declared here
 1557 | extern const char *tcleval(const char str[]);
      |                    ^~~~~~~

where is tcleval with two parameters defined/declared?

StefanSchippers commented 4 weeks ago

Don't know why this was not flagged by the windows maintainer. Thank you for pointing this out. Fixed

Kreijstal commented 4 weeks ago

because you avoid this path if you import cairo :)

StefanSchippers commented 4 weeks ago

Thank you for the tip!