Py ++ generates the syntax that you use with boost :: python to create python entry points in your application. Assuming everything went well with Py ++, you need to load the Boost framework and add the boost and boost :: python lib directory to your project, and then compile with the cpp created using Py ++.
You can use any build system you want for your project, but boost is built using bjam. You need to choose whether you want a static lib or dynamic boost python lib, and then follow the instructions for creating boost here .
If on windows you need to change the extension in your built-in library from .dll to.pyd. And yes, it must be a library project, it does not work with executable files.
pyd, python python [Your-library-name] , , .
, , .cpp :
BOOST_PYTHON_MODULE( -name- )
, python .
, .
, , python , , boost:: python python . , pyd , , python, . , , .
:
, , python setuptools. python . - IDE , .