0

Can I embed python into my app using only boost:python? Will I need any additional libraries to bring with my app?

Or is there any embeddable language which natively supports unicode chars and does not need any libraries to bring with app

3
  • You always need at least one library: The one implementing the language. Commented Sep 25, 2012 at 16:52
  • So, boost:python is just a wrapper on library? Commented Sep 25, 2012 at 17:49
  • Well, boost::python is a library. I don't actually know a lot about its it, I figure you still have to link to CPython in library form. But my point is, to embed a language you must bring in C++ code (or code callable from C++) which implements the language. By linking it in, statically or dynamically. Commented Sep 25, 2012 at 17:54

1 Answer 1

1

To integrate Python in a C++ application you can use Boost.Python but you can also interface the Python C API directly.

For both you need the Python library, for Boost.Python approach you also need to link to the Boost.Python library.

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

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.