Subject: Re: [Boost-build] Telling the location of library files when using a different partition to modular-boost
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2016-03-21 09:14:36
> -----Original Message-----
> From: Steven Watanabe [mailto:watanabesj_at_[hidden]]
> Sent: 17 March 2016 18:08
> To: Boost.Build developer's and user's list
> Subject: Re: [Boost-build] Telling the location of library files when using a different partition to modular-boost
> 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.
Looks promising but doesn't quite work (after corrected the missing space exercise for the student, and some experiments in case the
colon in I: is causing trouble?)
(I've run a -d5 but the log file is 1 Mbyte even when zipped and leaves me little the wiser.)
Other suggestions welcome.
I had to laugh at this
Assigns a symbolic project ID to a project at a given path. This rule must be better documented!
--- Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 (0) 1539 561830
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