[C++-sig] Exporting Classes to Embedded Interpreter
Vincent Castellano
surye80 at gmail.com
Mon Sep 22 02:49:18 CEST 2008
I can create a shared library that exports C++ classes to python. And
I have the embedded interpreter working for boost:python::exec() to
call python code (as well as pulling out objects and function from
globals, and interacting with them in C.
What I am trying to is combine these techniques to enable classes
written in C++ to be accessible to the embedded interpreter, and more
to the point, instantiate instances of those classes in C++, and pass
them into the globals of python to interact with. I have tried to find
documentation on this but it eludes me. Any pointers on how to
accomplish this, or is it possible at all?
Thanks,
Vince Castellano
More information about the Cplusplus-sig
mailing list