Python Call C++ An example of calling a C++ function from Python Build mkdir build cd build cmake .. make Run To call a C++ funtion from Python, run the following from the main folder. python py_call_c_main.py References A Simple Boost-python CMakeLists.txt Call C++ from Python using the cdll library Boost-python Tuple Objects