Boost logo

Boost :

Subject: Re: [boost] [atomic] [release] possible linking problem with atomic (was: [1.53.0] Beta release candidates available)
From: Olaf van der Spek (ml_at_[hidden])
Date: 2013-01-10 13:54:59


On Thu, Jan 10, 2013 at 7:17 PM, Andrey Semashev
<andrey.semashev_at_[hidden]> wrote:
> On Thu, Jan 10, 2013 at 9:46 PM, Eric Niebler <eric_at_[hidden]> wrote:
>> Fwd'ed from the users list...
>>
>> On 1/10/2013 9:37 AM, Olivier Tristan wrote:
>>> Hi,
>>>
>>> Don't know if It's suppose to be normal but it looks that the newly
>>> added boost atomic requires linking against a static lib by default.
>>> This seems wrong as this an header only package.
>>>
>>> Please note that I'm using a fresh 1.53 beta 1 with no define like
>>> BOOST_ATOMIC_DYN_LINK or BOOST_ALL_DYN_LINK
>>>
>>> BOOST_DYN_LINK is greyed out when I open the header in the editor so
>>> it doesn't look like to be defined.
>>>
>>> (Visual c++ 2005 SP1)
>>>
>>> Am I missing something here ?
>>>
>>> Thanks !
>
> As I understand, static libs are the default on Windows. So unless
> specified otherwise, Boost.Atomic follows other libs in this regard.
>
> Note that it is ok to link statically with Boost.Atomic if only one
> module of the application uses it.

The point is the user appears to think it's a header-only lib.

-- 
Olaf

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