Skip to content

Embedding Python in C++ without linking libpython: Recommended but not explained? #3697

Answered by skoslowski
emmenlau asked this question in Q&A
Discussion options

You must be logged in to vote

This section of the doc applies to extension modules only. They are plugins and it's the responsibility of the host application, python, to provide those symbols (by linking libpython). When you embed Python you are creating your own host application that can load (import) extension modules. So it has to link libpython, that is after all where the runtime is implemented.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@emmenlau
Comment options

Answer selected by emmenlau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants