Subject: Re: [boost] Static Libraries / Multiply Defined Symbols
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-22 16:48:14
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk