the executable code with static link can be bigger and runs a little bit faster.
the executable code with dynamic link can be smaller and runs a little slower.
The main difference may be compiling. If your code is large and you use static
link, compiling time can be very long. if you change only the contents of
dynamic libraries, you compile these libraries only. Then you do not need to
recompile your whole applications.
Dynamics libs can be used to organize your code. For large applitions it is
a must. Now you may know the tricks of plugins and patches.
[ 此帖被steinlee在2009-11-21 04:21重新编辑 ]