• 0 Posts
  • 1 Comment
Joined 2 years ago
cake
Cake day: June 18th, 2023

help-circle
  • To add a couple of issues with Dynamic Libraries, and why someone would choose Static Libraries:

    • The dynamic library being updated can break a program due to a change in the library. Think a math call goes from divide(a,b) to divide(a,b, precision), so now the old call doesn’t exist.
    • Some languages don’t have a “stable” way to talk to itself. This means that if you have a program and library compiled with compiler version A, then later compile an update to the library with compiler version B, the program won’t know how to talk to the library correctly, even though the call is still there.

    Like a lot of things, there are tradeoffs, and there is no universal correct choice.