[squeak-dev] Squeak and Tesseract
tim Rowledge
tim at rowledge.org
Sat Nov 3 03:19:06 UTC 2018
> On 2018-11-02, at 7:28 PM, Sean P. DeNigris <sean at 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-in-c for a faintly intelligible discussion
tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
"!" The strange little noise you make when you can't scream...
More information about the Squeak-dev
mailing list
|