[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] ctypes and c++

On Sun, May 11, 2014 at 12:25:27AM +0100, Jeremy Yallop wrote:
> >> Recent developments (namely
> >> support for generating stubs) make binding to C++ feasible, so it's
> >> possible that there'll be support for C++ at some point.
> (What I mean by this is that with stub generation the C++ compiler
> will take care of name mangling, since ctypes is generating source
> rather than resolving symbols in binary objects.  There are various
> missing pieces making that route unviable for the moment, though.)

The best route right now is probably to write a small C interface layer to
the C++ library with the subset of functions you want to call.  Most FFIs
generally have issues with robust C++ linking, so this would come in handy
with other language interfaces too.


MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.