From: Sean O'Halpin Date: 2008-12-12T02:11:38+09:00 Subject: Re: Q: FFI and C++? On Thu, Dec 11, 2008 at 3:21 PM, Charles Oliver Nutter wrote: > Jason Roelofs wrote: >> >> Because of the complexity that C++ adds, I doubt that any feasible FFI >> library can be made that works reliably against C++ libraries, though >> Charles will probably be a better voice for whether this is truely >> possible or not. > > Wayne and I talked about this a bit, and largely the problem is the > name-mangling involved. So there would always need to be a compile phase for > the C++ stuff to be callable from an FFI-based library. The compile step may not be necessary. I'm looking at using gccxml to generate function signatures. It provides the mangled names in the output (and emulates a number of compilers including MSVC versions 6 to 8). I'll report back as I find out more. Regards, Sean