Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-09-09 08:00:05


Hi Peter,

> lib libboost_unit_test_framework
>
> : <name>/path/to/lib/libboost_unit_test_framework.so.1.32.0
> :
> : <include>boost/$(os-name)
>
> <dll-path>/path/to/lib
> ;
>
> But if I do this, I get this error:
>
> /home/schoen/src/projects/meprosCpp/trunk/3rdparty/boostBuildV2/new/prebuil
>t.jam:33: in object(prebuilt-file-generator)@1.run from module
> object(prebuilt-file-generator)@1
> error: Unknown type for prebuilt target libboost_unit_test_framework

Are you sure the code posted above is correct? I'd suspect that when <name> is
used, it's searched lib. prebuilt target is created only if you use <file>.

Assuming that you've made a typo in posting, and your real case used <file>.
Then, Boost.Build tries to figure out what kind of file you use (it could be
either static lib or shared lib, for example. It looks at suffix (".0") and
is confused. I have two suggestions:

- make Boost.Build look at first suffix (".so") as well.
- allow user to specify type explicitly ( <type>SHARED_LIB)

What approach looks better to you?

- 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