Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-09-14 01:33:47

On Wednesday 14 September 2005 06:07, Daniel Schlyder wrote:
> What is the difference between <source> and <library>?
> The docs say they
> are equivalent

The docs are wrong ;-) The <source> feature is identical to putting something
to the list of sources. The <library> feature is almost the same, but only for
linking. So, <library> feature on a target that does no linking is ignored.

> and that I should use the former, but executables in one of
> my projects segfaults if I don't use the latter to link Boost.Filesystem.
> (Using Boost CVS HEAD, MinGW GCC 3.4.4, BJam 03.01.11.)

Wierd. Can you compare the link lines. The only reason I can think of is that
in one of the cases you don't link to boost.filesystem at all, and mingw for
some reason don't report unresolved symbols.

IIRC, we had similar bug a long time ago -- where gcc would produce executable
with unresolved symbols without a warning. Maybe, mingw is somewhat specific
in this regard.

- Volodya

Vladimir Prus
Boost.Build V2:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at