Boost logo

Boost-Build :

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-24 05:49:49


> -----Original Message-----
> From: Steven Watanabe [mailto:watanabesj_at_[hidden]]
> Sent: 22 March 2016 17:32
> To: boost-build_at_[hidden]
> Subject: Re: [Boost-build] Telling the location of library files when using a different partition to modular-boost
>
> AMDG
>
> On 03/22/2016 11:07 AM, Paul A. Bristow wrote:
> >
> > in my jamfile I have
> >
> > using use-project /boost : i:/modular-boost ;
> > requirement
> >
> > <library>/boost/system//boost_system
> >
> > and
> >
> > run hello_boost_system.cpp ;
> >
> > I get
> >
> > LINK : fatal error LNK1104: cannot open file 'libboost_system-vc140-mt-sgd-1_60.lib'
> >
> > but this file *does exist*:
> >
> > I:\modular-boost\stage\lib\libboost_system-vc140-mt-sgd-1_60.lib
> >
> > If I change to this run line (and remove the <library> )
> >
> > run hello_boost_system.cpp /boost/system//boost_system ;
> >
> > I get the same link error.
> >
>
> This should be exactly equivalent to <library>.
>
> > (Wondering if an absolute path was not allowed, if I try to create a relative path then I get this
> >
>
> It's impossible to create a relative path
> to a different drive.
>
> > <snip>
> >
> > But if I add
> >
> > <library>/boost/thread//boost_thread
> >
> > as well as
> >
> > <library>/boost/system//boost_system
> >
> > then it all builds and passes, as does
> >
> > run hello_boost_system.cpp /boost/system//boost_system /boost/thread//boost_thread ;.
> >
> > So I there is something I don't understand about library requirements for Boost.System and Boost.Chrono,
> >
>
> Now that is weird.

Indeed weird.

I'm coming to the view that putting stuff in a separate partition was a bad idea, so I think that, before I waste any more of your time, I will move the contents to the same partition to make sure that this is not 'operator error'. And I have a high priority task on my desk too.

After making changes to a jamfile should I always do b2 - a (I think I have). Do I need to repeatedly use --reconfigure? b2 headers?

Thanks for help so far. I'll get back to this when I've moved and double checked.

Paul

> Does the compile command
> for hello_boost_system change when adding
> boost_thread? In particular -DBOOST_ALL_NO_LIB
> or some such might be added?
>
> > but was misled by the failure to link (and that I still don't understand why).
> >
>
> I'd need to see the linker commands to guess why.
>
> In Christ,
> Steven Watanabe
>


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