Boost logo

Boost-Build :

Subject: Re: [Boost-build] Problem with linking to prebuild library
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-05-24 13:54:25


On Sunday 24 May 2009 20:23:02 tr1gun wrote:
> Am Dienstag, den 19.05.2009, 23:03 +0400 schrieb Vladimir Prus:
> > 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
> > _______________________________________________
>
>
> thanks works fine now.
>
> Is there some doc about that problem or examples for dll linking?

All the docs we have are at:

        http://www.boost.org/boost-build2/doc/html/bbv2/tasks/libraries.html

- 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