> > 1. Beginner - Using Wrapped C++ in Python code (Taylor Centers) > > > ---------------------------------------------------------------------- > > BOOST_PYTHON_MODULE(MyMath) { > > using namespace boost::python; > > class_<MyMath>("MyMath", no_init) > > .def("__init__", &__init__) > > .def("MyAdd", &MyAdd) > > .def("MySubtract", &MySubtract); > > } > > > >>Any tips or direction would be appreciated. Thanks! > > Have you tried importing the module? That would deb the first step
import MyMath mm = MyMath.MyMath() mm.MyAdd(1,2) # assuming this method takes 2 arguments
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org https://mail.python.org/mailman/listinfo/cplusplus-sig