有关C++导出的问题
class_<Complex>("Complex", init<double, double>())
上面那种是C++导出时构造函数有参数的时候写的,那无参的构造函数要怎么写?
class_<Complex>("Complex", ??????)
就是上面的问号处要怎么写?麻烦了
问题点数:20、回复次数:1Top
1 楼ww84155448()回复于 2006-06-01 14:27:44 得分 0
请问PYTHON是不是不支持D3D的东西?当我导出D3D相关函数时总出错,下面是其中一个错误
c:\boost_1_33_1\boost\python\detail\caller.hpp(199) : error C2027: use of undefined type 'specify_a_return_value_policy_to_wrap_functions_returning<struct _D3DVECTOR *>'
c:\boost_1_33_1\boost\python\detail\caller.hpp(176) : while compiling class-template member function 'struct _object *__thiscall boost::python::detail::caller_arity<1>::impl<struct _D3DVECTOR * (__thiscall KMotionUnit::*)(void),struct boost:
:python::default_call_policies,struct boost::mpl::vector2<struct _D3DVECTOR *,class KMotionUnit &> >::operator ()(struct _object *,struct _object *)'
Error executing cl.exe.
请高手来帮帮忙啊~Top




