mercredi 12 octobre 2022

Pybind11 and shared libraries

I am just starting out with Pybind11 for python bindings with C++ code. Using CMake, the C++ files having functionalities to be imported in python are compiled to a .so(shared library) file in Linux. My question is that after compilation do the .so file need the C++ compiler to be present in the system for my python program to use those functions? For e.g, if I just transferred the .so file to another Linux system with C++ installed and tried to import in a python file, will it work?

Aucun commentaire:

Enregistrer un commentaire