Use Python code in C/C++ Use Python code in C/C++ numpy numpy

Use Python code in C/C++


Embedding the CPython interpreter into a C or C++ program is actually pretty straightforward.

The official documentation has some complete examples.

Also, check out SWIG and Boost.Python.