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?

5
  • 1
    Here is an exhaustive documentation covering how to call C++ functions - docs.python.org/2/extending/extending.html Commented Apr 1, 2014 at 5:37
  • thanks a lot. should i close the question? Commented Apr 1, 2014 at 5:41
  • Yes, you can close the question. Commented Apr 1, 2014 at 5:43
  • 1
    @hellboy Please give answer, user40 if you are agree with answer please mark it as accepted and please don't close this question this will help someone in future. Commented Apr 1, 2014 at 6:07
  • You can refer to this Question. Commented Apr 1, 2014 at 6:30

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.