I have a C++ compiled static library of about 15 classes and their member functions and stuff, and compiled, it\'s almost 14 megabytes. It links to Google\'s dense hash tabl
The static library is a considerably different format the finished binary; partially because it has quite a bit more information. Essentially, the static library acts like a ZIP of all the .obj files generated from your translation units. This allows the linker to throw out unused functions, and if you're using LTCG, it allows the inliner to make cross-module decisions and other such optimizations.
Additionally, some compilation modes will embed the debugging symbols directly in the .lib, removing the need for separate .pdb files.
Generally you shouldn't need to worry about static library size; the linker will throw out all the extra information when building the final executable.