I have working software which is built in Visual C++. Now, I have to convert some module of this software to Python. I want to send an array to the Python module from a C++ program, run a Python script and return a value to the main C++ program. I see Python.boost and pybind11 and tried to build and use but, I could not build it properly. Is there any other library, which does not require it to be built, that I can directly use in my environment?
There are three alternatives which come to my mind.
SWIG is an external program which you feed your C++ header file and which generates the Python interface code for you.
Boost.Python is a high-level object oriented interface to the Python C-API.
Is the successor of Boost.Python. It uses C++11 to provide more convenient interfaces.