I look at history of libcdt API:
https://gitlab.com/graphviz/graphviz/-/blob/8.1.0/lib/cdt/cdt.h?ref_type=tags#L87
https://gitlab.com/graphviz/graphviz/-/blob/9.0.0/lib/cdt/cdt.h?ref_type=tags#L89
https://gitlab.com/graphviz/graphviz/-/blob/10.0.1/lib/cdt/cdt.h?ref_type=tags#L88
Why after API changed, value of CDT_VERSION
didn’t change?
I would say a mistake on our part. There have been a number of these version macros that have not been rigorously monitored nor updated during API changes. soversion also has not been well maintained, which we’ve been trying to correct recently. We should probably bump CDT_VERSION
now to at least correct this problem going forwards.
BTW are you using libcdt for something outside of Graphviz? I am not aware of any non-Graphviz use.
I’m just now wondering if I should use libcdt in my future projects
It’s quite old, there may be better choices that are actively maintained and take advantage of modern CPUs.