How can I use C++ class in Python?

后端 未结 3 1857
滥情空心
滥情空心 2020-12-23 09:26

I have implemented a class in C++. I want to use it with Python. Please suggest step by step method and elaborate each step. Somthing like this...



        
3条回答
  •  难免孤独
    2020-12-23 10:18

    I would suggest you try SWIG or sip (KDE/PyQt).

    SWIG link : http://www.swig.org/
    SIP link: http://freshmeat.net/projects/python-sip/

    These can be used to wrap C++ classes and provide a Pythonic interface to them.

提交回复
热议问题