Boost logo

Boost-Build :

Subject: Re: [Boost-build] Shared library as usage-requirement
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-06 17:37:18


AMDG

Younes Manton wrote:
> I have a static library "libkar", and this library depends on
> boost_iostreams. In the Jamfile of every depedent of libkar I have to
> specify that the depedent must also link with boost_iostreams. I want
> to avoid this extra work and require that all dependents of libkar
> also link with boost_iostreams when libkar is static, but I can't get
> it to work. This is what I tried first by moving the
> '<library>boost_iostreams' and 'searched-lib boost_iostreams' rule
> from a dependent target's Jamfile into libkar's Jamfile:
>
> # Project attributes
> project
> : usage-requirements <include>.
> <library>boost_iostreams
> ;
>
> # Project targets
> lib libkar : archive.cpp archive_file.cpp : <link>static ;
>
> searched-lib boost_iostreams
> :
> : <name>boost_iostreams-gcc43-mt
> ;
>
> I've also tried some other things like putting boost_iostreams in the
> sources list, nothing seems to work like I want it to. Any help would
> be appreciated

Does boost_iostreams work if you try to use it directly in an executable?

In Christ,
Steven Watanabe


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