An upcoming commit will change the storage-class attributes to be
controlled by the GVDLL symbol in cgraph.h.
Without this change, errors like this would occur when building the
test examples:
demo.obj : error LNK2019: unresolved external symbol Agdirected referenced in function main
Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.
# run the example
args = ["-Kneato"] if src in ["demo.c", "dot.c"] else []
- ret, out, err = run_c(filepath, args, "graph {a -- b}", link=libs)
+ if platform.system() == "Windows":
+ cflags = ["-DGVDLL"]
+ else:
+ cflags = None
+
+ ret, out, err = run_c(filepath, args, "graph {a -- b}", cflags=cflags, link=libs)
print(f"returncode: {ret} = 0x{ret:08x}")
if ret != 0: