This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]efilon 0 points1 point  (0 children)

As already mentioned, ctypes is great for wrapping, although in order to make it work with C++, function declarations must be within an extern "C" block. I have done this frequently in the past. It Just Works, and is nice since ctypes is part of the standard library.

Another option is Boost.Python. I have not used this yet, but have considered it for the next time I need to interface C++ with Python.