Boost logo

Boost Users :

Subject: Re: [Boost-users] Surprised by size of static libraries
From: ecyrbe (ecyrbe_at_[hidden])
Date: 2010-07-30 07:19:19

2010/7/30 David Aldrich <David.Aldrich_at_[hidden]>

> Please can anyone explain why the static libraries are at least 25x larger
> than the shared libraries?
> Is there a way to reduce the size of the static libraries?
this is beacause :
- function name mangling are not stripped away in static libs
- duplicate template instantiation are not stripped away in static libs

This is the job of the linker. when finally linking, name mangling and
duplicates are removed. this explains why dll are smaller than static libs.
There is no whay to reduce the size of your static libs. This is compiler
(or linker / template implementation / name mangling / whatever )

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at