Perhaps I'm not using the SWIG api right, but for conciseness and for the ability to update my question, please read here:

https://stackoverflow.com/questions/46166269/how-do-i-identify-the-correct-type-parameter-with-swig-ocaml


Does anybody know of an existing ocaml project that uses swig? Because I badly need to get past these problems with SWIG.