user40
user40

Reputation: 1396

Is there any way to call C++ function from Python?

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?

Upvotes: 1

Views: 115

Answers (2)

sebastian
sebastian

Reputation: 9696

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.

Upvotes: 2

hellboy
hellboy

Reputation: 2252

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

Upvotes: 2

Related Questions