[C++-sig] Defining and adding functions in pyste.
Nicodemus
nicodemus at esss.com.br
Tue Mar 2 23:11:59 CET 2004
Hanz Meizer wrote:
> <snip>
> This is working and showing in the output as expected. Unfortunately,
> using add_method gives me bad results because pyste doesn't know about
> the foobar function. ow do I have to setup my pyste file that it
> generates the same layout as my boost file?
You have to include foobar in another header file, and use that to
include your classe:
Test = Class("Test", "foobar.h")
add_method(Test, "foobar")
HTH,
Nicodemus.
More information about the Cplusplus-sig
mailing list