#include #include using namespace std; string testfunc() { return "fsdfg"; } PYBIND11_MODULE(_pybind, m) { m.doc() = "pybind11 example plugin"; // optional module docstring m.def("add", &testfunc, "A function which adds two numbers"); }