Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    Boost.Python is one of the more user-friendly libraries in Boost, for a simple function call API it is quite straightforward and provides boilerplate you'd have to write yourself. It's a bit more complicated if you want to expose an object-oriented API. Commented Sep 28, 2008 at 16:39
  • 26
    Boost.Python is the worst thing imaginable. For every new machine and with every upgrade it goes with linking problems. Commented Sep 18, 2018 at 9:58
  • 31
    Nearly 11 years later time for some contemplation about the quality of this answer? Commented May 23, 2019 at 19:59
  • 4
    Is this still the best approach to interface python and c++ ? Commented Jun 17, 2019 at 2:28
  • 14
    Maybe you can try pybind11 which is lightweight compared to boost. Commented Jul 16, 2019 at 12:46