I would like to use an existing C++ library from a Racket program. The library is sufficiently complicated that the authors figured they needed C++
How should I go about that?
Presumably using the ffi.
Is there existing documentation about using ffi with C instead of C++?
Or do I need to define my own set of C-interfaced functions (using something like extern "C" in new C++ code that I write) and call them from Racket's ffi?
Presumably there will be issues with system initialization. Doesn't C++ like to own the main() function?
Presumably there will be issues with C++'s storage allocation. It has its own ideas about constructors, destructors, pointer copying, etc. How to set things up so that C++ will use these properly and not get interference from the garbage collector?
-- hendrik