Boost logo

Boost-Build :

Subject: Re: [Boost-build] Problem with linking to prebuild library
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-05-19 15:03:09


On Tuesday 19 May 2009 22:50:49 tr1gun wrote:
> Hello,
>
> i have a problem with building a dll that links to a prebuild dll. I have declared following targets in ftdi.jam:
>
> searched-lib ftddriver :
> : <name>ftd2xx
> <include>$(inc_dir)
> <search>$(lib_dir)
> :
> : <include>$(inc_dir)
> <search>$(lib_dir)

I suggest you drop this.

> ;
>
> lib ftdi2cdriver : [ path.glob $(location)/ftdi_i2c : *.cpp ]
> ftddriver
> : <include>$(inc_dir)
> <define>FTCI2C_EXPORTS
> <define>_USRDLL
> : <link>shared
> :
> ;
>
> The command to build is:
> bjam --user-config=config.jam /ftdi//ftdi2cdriver link=shared
>
> It prints out that there are some targets but doesn't build anything.

The problem is that ftddriver usage requirements include <search> which
causes the second target to be treated as searched lib without any
warning. (That is the reason searched-lib is the recommended way now --
it's more explicitly and does not require no guessing).

- 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