0

I want to call functions of a C++ program from Python code.

How can make C++ functions available in a Python program?

1

2 Answers 2

4

http://www.boost.org/doc/libs/1_47_0/libs/python/doc/

Boost.Python, a C++ library which enables seamless interoperability between C++ and the Python programming language.

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

1 Comment

tanks guys for answer this question
1

You can find a simple example of Python's native C API (works just as well for C++) here

If you deal with numerical calculations and you use numpy in your python code, you should consider numpy's extensive additions to the C API (manual)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.