JDJMSon wrote:

> 
> Neal Becker wrote:
> 
>> Shouldn't that be:
>> .def("TestFunction",&TestClass::TestFunction)
>> > ;
> 
> 
> Yes, you're right, but I'm still getting the error. I'm using a
> prebuilt python library, so later I'm going to rebuild python myself
> and see if that helps, as has been suggested.
> Thanks.
> 

I think you need an init.  Usually looks like:

class_< c++ class > ("python name", init<args..>())
.def ("python member", &class::member);

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to