2 ms·
It's been a few years since my last C++ class, and I haven't done any compiled programming since. So I either completely forgot about static linking, or it just
by jerrac 11y ago
It's been a few years since my last C++ class, and I haven't done any compiled programming since. So I either completely forgot about static linking, or it just didn't get covered.
Why have I seen several go apps that use static linking, but every C or C++ app I see uses dynamic linking?
A quick google makes me think that the main downsides to static linking are resources and upstream bugs. Those issues would apply to go the same way they'd apply to C. Right? So why does it seem (from my limited experience) that go uses static linking more than other languages do?
- pjmlp 11y agoThe authors are very vocal against dynamic linking. http://harmful.cat-v.org/software/dynamic-linking/ http://harmful.cat-v.org/software/dynamic-linking/ Modern applications use dynamic linking most of the time, because despite the possible headache with versions, it offers a much more flexible architecture.