Skip to content

Is it possible to build a single Windows DLL that includes glib, gthread ect. dependents? #851

Answered by derselbst
jabza asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it is possible: You just have to go through every dependent library of libfluidsynth.dll and compile that dependent library from source to create a static .lib. But before you can do this, you would have to build static versions of the dependencies of those dependent libraries. And before you can do that, you need to compile static versions of the dependencies of the dependencies' dependent libraries... you see the recursion stack that is building up until you finally end at Windows' native dlls, which you will be forced to link in dynamically.

Also, when performing static linking you must pay super close attention to software licenses: If you accidentally statically link in a GPL li…

Replies: 3 comments 8 replies

Comment options

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

Answer selected by derselbst
Comment options

You must be logged in to vote
2 replies
@derselbst
Comment options

@MrSapps
Comment options

Comment options

You must be logged in to vote
5 replies
@derselbst
Comment options

@3119369616
Comment options

@sykhro
Comment options

@kmturley
Comment options

@3119369616
Comment options

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