// mantid.cpp #include <iostream> #include <boost/python.hpp> void sayHello() { std::cout << "Hello, Python!\n"; } BOOST_PYTHON_MODULE(mantid) // Name here must match the name of the final shared library, i.e. mantid.dll or mantid.so { boost::python::def("sayHello", &sayHello); }
prev next