Boost logo

Boost-Build :

Subject: Re: [Boost-build] Telling the location of library files when using a different partition to modular-boost
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-03-17 14:07:42


On 03/17/2016 11:55 AM, Paul A. Bristow wrote:
> (Possibly unwisely ) I'm compiling and running C++ source that is on a different partition X: to my i:/modular-boost tree where the
> libraries are built OK.
> I have a jamfile on my X: partition and all works as expected until I need to link to a library, for example chrono to run a
> stopwatch.
> I've specified the library I need like this
> run hello_boost_library.cpp /boost/thread//boost_chrono ;
> exactly as works OK on the I:/modular-boost partition.
> My libraries are in the 'standard' I:/modular-boost/stage/lib location
> but b2 is looking in the wrong place?
> error: Unable to find file or target named
> error: '/boost/thread//boost_chrono'
> error: referred to from project at
> error: '.'
> error: could not resolve project reference '/boost/thread'
> How do I tell the jamfile where the library files reside ?

use-project /boost : I:/modular-boost ;

This can go in user-config.jam, project-config.jam,
or your project's jamfile.

In Christ,
Steven Watanabe

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