Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-08-27 11:06:07


[2002-08-27] Patrick Frants wrote:

>Hi,
>
>I wrote this template:
>
>template q_binary : <lib>advapi32
> : <qmsvc><*><define>WIN32
> <debug><define>_DEBUG
> <debug-store>database
> <threading>multi
>
> <exception-handling>on
> <rtti>on
> <*><runtime-link>static
> <qmsvc><*><library-path>"C:/Program
>Files/Microsoft Visual Studio/VC98/Lib"
> :
> ;
>
>and... it does not work. I tried a lot of variants, but advapi32.lib never
>shows up on the command line (bjam -d2) or in the .cmd response file. The
>library-path feature works ok, but now I want to specify that the target
>should link with some libraries from this path.

That's because you used a dependency/source declaration for it,
"<lib>advapi32". That syntax is only for libraries that you build yourself.
What you want is to put "<find-library>advapi32" in the requirements
section.

-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq - Grafik666_at_AIM - Grafik_at_[hidden]

 


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