[C++-sig] leaving out functions when exposing a class

Roman Yakovenko roman.yakovenko at gmail.com
Sun Jul 13 09:40:09 CEST 2008


On Fri, Jul 11, 2008 at 11:51 PM, FoxMulder900 <foxmulder900 at yahoo.com> wrote:
>
> Hello, i am just starting to use boost python in my project. I am wrapping
> one of my rather large classes that I want to be available in script.
> However, there is only a small number of functions that I need to be
> available in python, it was my understanding that I would not have to wrap
> every function. Is this correct?

Yes

> When I run bjam, it gives me unresolved
> external errors on the functions I did not wrap. If it is possible to leave
> out functions, is there something extra I have to do?

Yes, modify the link line - you should link your module with the
library, that defines that functions

> I also have a second, slightly less significant question, How exactly do I
> wrap deconstructors?

You don't.

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



More information about the Cplusplus-sig mailing list