[C++-sig] Help! Py++ Generated Binding Won't Compile

Roman Yakovenko roman.yakovenko at gmail.com
Fri Apr 13 19:49:29 CEST 2007


On 4/13/07, Rocketman at JSC <snemeth at houston.rr.com> wrote:
>
> Thanks for the help Roman.  Not totally sure what I did, but this added code
> to the generate_code.py file seemed to fix the problem:
>
> event_class = mb.class_( 'Event' )
> event_class.opaque = True
>
> event_class_setCon_ptr = event_class.member_function( 'setCondition',
> recursive=False )
> event_class_setCon_ptr.call_policies =
> module_builder.call_policies.return_value_policy(
> call_policies.return_opaque_pointer )
>
> event_class_setAct_ptr = event_class.member_function( 'setAction',
> recursive=False )
> event_class_setAct_ptr.call_policies =
> module_builder.call_policies.return_value_policy(
> call_policies.return_opaque_pointer )

Well you set call policies. I am not sure they are the best one. Does
it work for you?
( I mean run-time )

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



More information about the Cplusplus-sig mailing list