I want to provide python interface to my C++ shared library, I am planning to use Boost::python for the same, my C++ code based is huge and divided across headers and implementation files. But all the python::boost examples talks about adding python::boost constructs in cpp files and how to deal this for header files. and Can I have same code based so that I can build both C++ shared library and python modules
I want to provide python interface to my C++ shared library , I am
Share
Here is a link to a guide on how to use Boost.Python: http://www.boost.org/doc/libs/1_51_0/libs/python/doc/tutorial/doc/html/python/exposing.html
Example using header / implementation structure: