Boost logo

Boost :

Subject: Re: [boost] Static Libraries / Multiply Defined Symbols
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-22 16:48:14


AMDG

Audino, Jeremy wrote:
> Using Visual Studio 2005, I have two independent static libraries making use of boost. When linking both into an executable I'm getting some multiply defined symbols. I suspect that since most of boost's implementation is header-only, symbols for the boost library functions are appearing in both libraries. I can get around this by specifying /FORCE:MULTIPLE when linking, but this isn't ideal. Is there a better way to get around this?
>

This is a bug in the compiler. The trunk contains
a workaround. See
https://svn.boost.org/trac/boost/ticket/2992

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk