I am trying another approach... it might make more sense for me to embed the Ocaml into C++. 
I have read the instructions, and it seems feasible, except that I have a few questions:
The problem I am trying to solve seems to be a can of worms from whichever angle I take it... 

Luca