Pros of static linking: 1. You do not have dependencies on DLLs that are statically linked; 2. It produces a smaller *package*. For example when there are two functions named foo() and bar() in the lib and you use only foo(), the linker will strip bar(). If you do a dynamic linking you'll have to distribute the DLL, which contains both foo() and bar(), leading to a bigger package.
Cons of static linking: 1. If there are bugs in the lib, you'll have to recompile all programs that are statically linked to it to fix it; 2. It produces bigger *executables*. In the example above, if there are tons of programs using the same lib, each of those programs will contain a copy of foo(), which statistically wastes space. 2014-01-25 Best regards, lh_mouse ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
