Subject: Re: [boost] [atomic] boost.atomic library/win32
From: Jürgen Hunold (jhunold_at_[hidden])
Date: 2012-08-10 07:21:16
On Thursday, 9. August 2012 14:26:17 Lars Viklund wrote:
> On Thu, Aug 09, 2012 at 01:31:46PM +0200, Tim Blechmann wrote:
> > atm, all boost.lockfree tests of msvc fail for this reason. also
> > according to Zao on irc, it will need some specific treatment to avoid
> > the compilation of a static library.
A quick workaround is to always link against the static Boost.Atomic (see
> >  http://www.boost.org/development/tests/trunk/developer/lockfree.html
> The rites I had to perform to get Atomic to build in a way that it was
> usable as a DLL was:
[ snip instructions]
> I might be off on some things here, but this _should_ make it a good
> dynamic Boost library. I'm a bit opposed to requiring something to be
> dynamic however, as that kind of implies that you need a dynamic
> language runtime.
Well, it would make a good header only library, because only the static
lockpool is compiled into the "library". But this might be required if Atomic
is linked against several libraries.
The other solution would be to create a static library only, as in
Any other ideas?
-- * Dipl.-Math. Jürgen Hunold ! * voice: ++49 4257 300 ! Fährstraße 1 * fax : ++49 4257 300 ! 31609 Balge/Sebbenhausen * jhunold_at_gmx.eu ! Germany
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk