|
Boost-Build : |
Subject: Re: [Boost-build] unable to construct prebuild library
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-02-21 01:51:22
On Friday 20 February 2009 16:06:27 Alexander Bernauer wrote:
> Hi
>
> somewhere in my Jam tree I have a small project with a single
> executable. This executable depends on a prebuild library. Here is
> the Jamfile:
> ---8<---
> lib boost_program_options : :
> <file>/home/code/local/lib/libboost_program_options-gcc43-mt-1_38.a ;
> exe eps_over_nc : eps_over_nc.cc boost_program_options ;
> --->8---
>
> This works. But actually I don't want to state the library file but the
> name instead. So, here is how I'm trying to do so
> ---8<---
> lib boost_program_options : : <name>boost_program_options-gcc43-mt-1_38 ;
> exe eps_over_nc : eps_over_nc.cc boost_program_options ;
> --->8---
>
> Unfortunatelly this results into the following output
> ---8<---
> warn: Unable to construct ./boost_program_options
> warn: Unable to construct ./boost_program_options [why twice?]
> ...found 87 targets...
> ...updating 10 targets...
> gcc.compile.c++ bin/gcc-4.3.3/debug/threading-multi/eps_over_nc.o
> [...]
> gcc.link bin/gcc-4.3.3/debug/threading-multi/eps_over_nc
> [a lot of linker errors because boost_program_options is missing on the
> command line]
> --->8---
Does it help if you use:
searched-lib boost_program_options : : <name>boost_program_options-gcc43-mt-1_38 ;
?
- 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