Linking C++ Application with python3.dll instead of python3xy.dll #5259
Unanswered
Lucrecious
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to create an application that has a low-friction building process.
I want to embed a python interpreter, and right now I'm on python 3.1.2, however, I want to link against python3.dll so that users only need a version of python3 and not the exact same build.
However, when I try to link against python3, I get a bunch of unresolved symbols:
There's about ~20 of them.
How can I properly link again python3 and not a specific version?
Here's my build command:
If I simply link against
python312
instead ofpython3
then everything is fine.I don't want to embed the interpreter because I want to keep my build as small as possible, and the python package immediately adds 23mb (which isn't bad at all, but if I can avoid that, I'd like to). Moreover, packaging python with the application seems like a messy solution. You basically need to put the executable in the same folder as the python package - the package cannot be its own subdirectory within the build folder (if anyone has a solution to this, I'd love to hear it).
Thanks
Beta Was this translation helpful? Give feedback.
All reactions