On Wed, May 5, 2010 at 1:19 PM, vishal bayskar
<vishal.bays...@nechclst.in> wrote:
>
> Actually I am able create wrapper code for list . All the functions of list
> are exposed.
> But when I try to compile it (try to create shared library) it showing below
> error
> ...

> mb=module_builder.module_builder_t(["./listP.cpp"],
> )
>
> classA =  mb.class_('list<A, std::allocator  >')
> classA.include()

There is no need to expose std containers directly. Instead, expose
declarations that are using them and Py++ will do the rest.

mb.free_function( 'getDummyAlist' ).include()

This topic is covered in the following document:
http://language-binding.net/pyplusplus/documentation/containers.html

HTH

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to