Boost logo

Boost-Build :

Subject: Re: [Boost-build] Shared lib target is always rebuild
From: Vladimir Prus (ghost_at_[hidden])
Date: 2012-05-18 05:24:48


On 18/05/12 12:49, Pavel Machyniak wrote:
> Hi,
>
> When building a shared lib, the target is always rebuild. Tested on Windows
> with MSVC toolset, with boost-build from boost 1.49.
>
> Example:
> ### jamfile.jam ###
> lib aaa : a.cpp :<link>shared ;
> ---
> ### a.cpp ###
> void test() {}
> ---
>
...
>
> It seems that it is missing `aaa.lib`, but it is never build. In output dir there are:
> a.obj
> a.obj.rsp
> aaa.dll
> aaa.dll.rsp

This is because your shared library probably does not export any symbols, using __declspec(dllexport).
Of course, this also renders such library effectively useless ;-)

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk