[C++-sig] linking with non-python libraries

Roman Yakovenko roman.yakovenko at gmail.com
Tue Feb 14 14:37:37 CET 2006


On 2/14/06, Ben Veal <benveal92 at hotmail.com> wrote:
>
> O.K. problem solved. My own stupid mistake (I'm just a newbie). The base
> class declares it's copy constructor as private. This had caused compilation
> errors when I initially tried to build the extension without pyplusplus, so
> in order to get it to compile I changed the header file of the base class to
> declare the copy constructor as public (under the assumption that class
> member access rules are enforced at compile time only).
> So the symbol it couldn't find (_ZN8BaseClassC2ERKS_) was for the now public
> copy constructor.
> Changing it back to private, removing the copy constructor from the code
> produced by pyplusplus

I think pyplusplus adds boost::noncopyable for class with private copy
constructor.
Am I wrong?

>, and adding boost::noncopyable to the boost.python
> wrapper for the derived class did the job.

Thanks

--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list