[plt-scheme] C++ Bindings using FFI

From: Eli Barzilay (eli at barzilay.org)
Date: Fri May 5 22:45:26 EDT 2006

On May  4, Paulo J. Matos wrote:
> Hi all,
> 
> Does anyone have any experience with generating bindings for
> libraries in OO-based C++?  Is there an easy way to achieve this
> using Eli's FFI?

No.  C++ compilers do their own name mangling -- including type
information in names, and using their own format for laying out
classes in memory.  If at some point there is some standard way for
C++ library layouts, it should be possible to hack an interface
through the foreign interface -- but it will take some effort.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.