Boost logo

Boost-Build :

Subject: Re: [Boost-build] [documnetation error?] linking with a prebuilt library
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-06-18 09:06:37


AMDG

Thorsten Ottosen wrote:
> Hm. You're right. It seems like no linking takes place with my style.
>
> So here's what I got (I am on windows):
>
> local CODE_ROOT = [ os.environ CODE_ROOT ] ;
>
> lib hugin : : <variant>release
> <file>$(CODE_ROOT)/dependencies/hugin/Lib/hugin-7.1-vc9.lib ;
> lib hugin : : <variant>debug
> <file>$(CODE_ROOT)/dependencies/hugin/Lib/hugin-7.1-vc9d.lib ;
>
> # ...
>
> [ unit-test speed_of_propagation
> : speed_of_propagation.cpp bayesian hugin
> ]
>
> This causes bjam to link with a file named "hugin.lib". The bjam
> output list this file in the files sent to the linker. That's wierd IMO.
>
> I tried replacing the file paths to the exact paths (that is, not using
> the $(CODE_PATH) prefix).

what does
ECHO $(CODE_ROOT) ;
say? The behavior seems to imply that it's
empty.

> Then it worked.
>
> Maybe, just a suggestion, we could emit an error message if the file
> is not found in a <file> directive.

lib hugin ;
is treated as shorthand for
lib hugin : : <name>hugin ;

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