Boost logo

Boost-Build :

Subject: [Boost-build] unable to construct prebuild library
From: Alexander Bernauer (alex_at_[hidden])
Date: 2009-02-20 08:06:27


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---

Why is Boost.Build thinking that it must construct
'./boost_program_options'?

When I just specify
---8<---
lib boost_program_options ;
exe eps_over_nc : eps_over_nc.cc boost_program_options ;
--->8---
the problem remains and no '-lboost_program_options' shows up at the
command line either.

What am I doing wrong?

regards

Alex




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