Subject: Re: [Boost-build] Shared library as usage-requirement
From: Younes Manton (ym.forums_at_[hidden])
Date: 2009-01-07 21:00:32
Steven Watanabe <watanabesj <at> gmail.com> writes:
> I can't reproduce your problem. Both of your attempts ought to work,
> although listing boost_iostreams as a source is more correct.
> What version of Boost.Build are you using?
> # Project attributes
> : usage-requirements <include>.
> # Project targets
> lib libkar : archive.cpp archive_file.cpp boost_iostreams : <link>static ;
> searched-lib boost_iostreams
> : <name>boost_iostreams-gcc43-mt
> exe test : test.cpp libkar ;
Thanks for the example, it helped me find the problem. I had left the
<library>boost_iostreams bit in the project usage-requirements. After removing
that both versions do work as you said. Adding <link>shared to the
boost_iostreams requirements also fixed the next problem, which was that libkar
was now linking to static versions of every lib, instead of just being built as
Thanks for the help.
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