thanks.I completed it...this is orther  problem.The above code is
correct.....Thanks for you...

2012/11/18 Holger Brandsmeier <brandsme...@gmx.de>

> That error has nothing to do with boost python. Apparently you did not
> link against the definition for the class Rectangle. You need to link
> against the object file generated from the definiton of Rectangle,
> usually you would have a Rectangle.cpp and generate a Rectangle.o.
> Your python module needs to link against Rectangle.o.
>
> On Sat, Nov 17, 2012 at 6:02 PM, simon zhang <hapo...@gmail.com> wrote:
> > yes..I try it..
> > Error:undefined symbol:_ZRI9Rectangle
> >
> > 2012/11/17 Sybren A. Stüvel <syb...@stuvel.eu>
> >>
> >>
> >> On 17 November 2012 16:46, simon zhang <hapo...@gmail.com> wrote:
> >>>
> >>> > func( &rt );
> >>> How to make a parameter of c++ instance's pointer to a python function.
> >>>
> >>> > def pfunc( ret )
> >>> >     print ret.long
> >>> >     print ret.area()
> >>> How to use c++ instance in python code.
> >>>
> >>> parameter
> >>>
> >>>
> >>
> >> Have you tried what you coded already? Did it give you any error
> messages?
> >> There is a lot of documentation out there (although not all of it
> equally
> >> clear) , have you tried that?
> >>
> >> --
> >> Sybren A. Stüvel
> >>
> >> http://stuvel.eu/
> >>
> >>
> >>
> >> _______________________________________________
> >> Cplusplus-sig mailing list
> >> Cplusplus-sig@python.org
> >> http://mail.python.org/mailman/listinfo/cplusplus-sig
> >
> >
> >
> > _______________________________________________
> > Cplusplus-sig mailing list
> > Cplusplus-sig@python.org
> > http://mail.python.org/mailman/listinfo/cplusplus-sig
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig@python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to