On 2018-11-02, at 7:28 PM, Sean P. DeNigris sean@clipperadams.com wrote:
Edwin Ancaer wrote
it seems like I should use FFI to call the functions in the Tesseract API, but this API is in C++, and I don't know if it is possible to use FFI to call C++ functions?
The typical workaround is to wrap the API you want to use in a C library that exposes them unmangled.
Also consider the trick used in the Bochs plugin - extern "C" { code....} See https://stackoverflow.com/questions/1041866/what-is-the-effect-of-extern-c-i... for a faintly intelligible discussion
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim "!" The strange little noise you make when you can't scream...