[Ecls-list] c++ and objects

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sun Jun 18 08:30:33 UTC 2006

2006/6/18, John Connors <johnc at yagc.ndo.co.uk>:
> Juan Jose Garcia-Ripoll wrote:
> > There are two options for what you want. First, you can build ECL with
> > a c++ compiler. This will allow you to access C++ functions from
> > inline code without name mangling problems.
> >
> Do you mean ECL can compile as a C++ app, or the code it produces can be
> compiled as C++?

Hmmm, I do not catch the subtelty. When I mean using a C++ compiler I
mean that _all_ of ECL is built using this compiler. The functions in
ECL still have C names because they are wrapped in extern "C" { }, but
ECL is effectively a C++ library and can then only be linked to C++
programs. Besides that, the same C++ compiler will be used for the
lisp code, which means that now your (ffi:c-inline...) forms can use
C++ statements.


More information about the ecl-devel mailing list