开发者

Library for Python: How to call C++ functions from Python program?

开发者 https://www.devze.com 2023-04-04 04:14 出处:网络
There is a library for Python that enables the calling ability (can call functions in C++ format without extern \"C\". Please, could you remind me the name of the libra开发者_如何学Gory? I forgot it\'

There is a library for Python that enables the calling ability (can call functions in C++ format without extern "C". Please, could you remind me the name of the libra开发者_如何学Gory? I forgot it's name and can't find it.

It's not Boost.Python.

Thank you very much. Your answer will be rewarded.


Perhaps you are thinking of SWIG.


Are you thinking of Boost.Python?


Also, ctypes lets you access dlls and wrap c code ctypes doc


SWIG, Boost.Python, SIP, Shiboken, PyBindgen, ...

SWIG and Boost.Python are most popular, i.e. they have the largest user base and the most active development teams. Which of these two to use is largely a matter of taste. So if you don't want to use Boost.Python, then SWIG is the obvious choice.

0

精彩评论

暂无评论...
验证码 换一张
取 消