[Python] Wrapping C++ windows mingw compiled shared library in python

Discussão em 'Python' iniciado por Stack, Junho 22, 2025.

  1. Stack

    Stack Membro Participativo

    I have a C++20 windows mingw compiled shared library. I'm using mingw 13.10 (from Qt dev kit) for compiling my shared library on Windows.

    I want to wrap some classes exposed by my library in a python library.

    My first go was pybind11, but it seems it's incompatible with mingw.

    The other option is using ctypes, but in this solution I can't expose classes.

    Do you know a way to easily wrap my library in python ?

    Continue reading...

Compartilhe esta Página