Boost logo

Boost-Build :

Subject: [Boost-build] Discrepancy between lib that bjam installs and lib that executable requires
From: Alex Wagner (alexcwagner_at_[hidden])
Date: 2009-10-12 18:52:18

I could use a little help figuring out the best way to get around this

Suppose I have something like this in my Jamroot:

     : : <file>$(BOOST_LOCATION)/lib/
     : : <include>$(BOOST_LOCATION)/include/boost-1_39 ;

   use-project /APPROOT : . ;
   use-project /MY_PROJ : MyProj ;

   build-project MY_PROJ ;

   install install-bin : MY_PROJ

   install install-lib : MY_PROJ :

And in the Jamfile for MyProj:

   exe MyProj
       [ glob src/*.cpp ]
     : <include>include

And suppose that in $(BOOST_LOCATION)/lib, is actually
a symlink to

The problem I'm having is that when I build the thing from the Jamroot
directory, and it installs and brings in dependencies, it copies a file
named "", but if I do a ldd on MyProj, it says it's
looking for "". I'm completely
baffled as to why. Shouldn't the executable depend on the library with the
name I gave it in Jamroot? Or if not, shouldn't it copy the library with
the longer name that the executable is really dependent on? (I mean, the
option is called "install-dependencies," not "install-irrelevant-stuff,"

I'm a relative newbie on this sort of stuff, so any efforts to help me
actually *understand* what's going on here would be greatly appreciated.


Alex Wagner

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at