Fixes (a part of) #3 by removing necessity of linking flags -cclib -lglpk on compilation of the apps using lp-glpk.
This is done by stop using dynamic ctypes.foreign and start using stub-generation feature of ctypes.
This patch also removes the hard-coding of C constants #defined in glpk.h.
Some references for stubgen features.
ocaml-yaml: directory structure and dune files are based on this
There is ctypes stanza for new dune 3.0. However, I didn't use this as it is described experimental (refs. 1 and 2).
lp-gurobi is remained to use dynamic ctypes.foreign because build-time dependency on libgurobi (not open-source, limited access) will make some trouble.
Fixes (a part of) #3 by removing necessity of linking flags
-cclib -lglpk
on compilation of the apps using lp-glpk. This is done by stop using dynamic ctypes.foreign and start using stub-generation feature of ctypes. This patch also removes the hard-coding of C constants #defined in glpk.h.Some references for stubgen features.
lp-gurobi is remained to use dynamic ctypes.foreign because build-time dependency on libgurobi (not open-source, limited access) will make some trouble.