Boost logo

Boost Users :

Subject: Re: [Boost-users] How to reduce the size of a output DLL file?
From: Igor R (boost.lists_at_[hidden])
Date: 2009-05-13 05:11:47

> I used to build a DLL file with VS2005 & boost-1_33, the project used
> boost::thread, asio, serialization, filesystem, datetime,system, link
> static, /MT, and the output DLL file size is about 1.7M.
> Now I port the project to VS2008 SP1 with boost-1_36, but the output
> file size increase
>  to 2.9M!
> The VS2008 DLL project just default setting. I do not know whether
> this problem is boost-1_36 OR vs2008. Can some one give me some tips
> for how to reduce the DLL out put file size?

Try to build both Boost and your project with "secure" STL off
(#define _SECURE_SCL 0)

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