Boost logo

Boost-Build :

Subject: Re: [Boost-build] Difficulty with pre-built lib declaration
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-12-19 15:22:33


On Friday 19 December 2008 23:00:02 Ian Emmons wrote:

> I would like to
> define the library target this way:
>
> path-constant BdbDir : D:/dev/KB/lib/bdb ;
> constant BdbVersion : 47 ;
> lib BerkeleyDB
> : # no sources
> : <variant>debug:<name>libdb$(BdbVersion)d
...
> However, this definition causes bjam to output the following error:
>
> D:/bin/boost-build/kernel\class.jam:93: in new
> *** argument error
> * rule object(searched-lib-target)@196.__init__ ( name : project :
> shared ? : search * : action )
> * called with: ( BerkeleyDB libdb47d : object(project-target)@10 :

Hi Ian,

can you please use 'searched-lib' target type, not 'lib'? It appears
that use of <name> inside conditional requirements confuses 'lib'.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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