Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::serialization forcing linker to create a lib?
From: Robert Ramey (ramey_at_[hidden])
Date: 2008-10-02 14:42:58

In order to avoid code stripping by the compilers optimizer in certain
cases, functions are exported as libraries. The libraries are never
used, but without this, the compiler removes some functions
which are used even though they are not explicitly referenced.

Roebrt Ramey

gfsdjkgf_at_[hidden] wrote:
> Hello folks
> I am using boost 1.37 off the CVS with the visual studio 2008
> compiler.
> As soon as I instantiate an archive (of boost::serialization), the
> linker implicitly creates a lib and a exp file for my exe. Is that
> wanted behavior? Why?
> //text_iarchive archive(file);
> <-
> When this line is not commented, the linker creates the two files.
> This is the linker output:
> 'Creating library project_manager.lib and object project_manager.exp'
> Thank you

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