[comp.lang.c++] Linking C++ into Lisp

faustus@dogwood.Berkeley.EDU (Wayne A. Christopher) (07/12/89)

We're writing a large application that will probably be partly Allegro Common
Lisp and partly GNU C++.  I have a few questions for anybody who has done
this sort of thing.

Are there any problems calling C++ code using the foreign function interface,
assuming it is declared extern "C"?

C++ has a special crt0.o, which, for one thing, calls constructors and
destructors for external instances.  If I don't have any of these, will
there be any problem with dynamically loading C++ code into Lisp?  How
about the tables used by virtual functions?  Are these global, or just
done in-line?

Is the C++ heap storage manager likely to interfere with Lisp's storage
allocation?

Any other pitfalls to watch out for?   Thanks,

	Wayne