[C++-sig] pyplusplus still not generating wrapper for simple class
roman.yakovenko at gmail.com
Tue Feb 14 06:36:25 CET 2006
On 2/13/06, Allen Bierbaum <abierbaum at gmail.com> wrote:
> Roman et al:
> I have been wracking my brain but I still can not figure out why my
> simple example is not exporting bindings for a very simple class. I
> have attached the relevant files to this e-mail.
> Base.h - Defines a class with a constructor, destructor, and one method.
> gen_python_module.py - Script to parse Base.h and generate bindings.
> decl_printer.py - Contains helper class I have found useful for
> writing out the current
> decl tree/list
> As far as I can tell the filter is working correctly and the Base
> class is being allowed through the filter. One thing I don't
> understand is why all the free functions in namespace '::' are making
> it through the filter as well, but that shouldn't affect the exporting
> of this class.
> Can anyone see why I keep getting this output:
Because you use old version. Try CVS one and it will work.
> This seems like about the simplest example I can make for exporting a class.
> Roman: I think it would be a *very* good idea to add exporting of a
> class to the tutorial. This is most likely the first thing anyone
> will try with pyplusplus.
I will do it.
C++ Python language binding
More information about the Cplusplus-sig