1

I'm new to Python. Is there a way to use C++ libraries while coding in Python?

What technique should be used to perform this task?

Bach
  • 5,939
  • 7
  • 30
  • 59
user40
  • 1,221
  • 5
  • 16
  • 32

2 Answers2

2

You may refer this documentation link to get the details on how to call C++ functions from Python.

hellboy
  • 2,194
  • 1
  • 12
  • 18
2

In addition, you can use one the various c++ to python wrapping libraries out there, like swig or boost.python. Depending on the complexity and "size" of the c++ library, this might be the more efficient solution.

sebastian
  • 9,240
  • 23
  • 53