|
Boost-Build : |
Subject: Re: [Boost-build] integration with lib boost
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2009-02-21 08:24:05
Hi Alex !
On Friday 20 February 2009, Alexander Bernauer wrote:
> I have a project which uses the boost library. This is also how I
> came to Boost.Build, by the way.
That is nice.
> This project must run on different plattforms. My problem is, that
> the boost libraries have different names on different plattforms, in
> my case libboost_date_time-gcc43-mt-1_38.a vs.
> libboost_date_time-gcc34-mt-1_38.a
> (note the different GCC version number).
Well, this can be suppressed by using --layout=system when building the
Boost libraries. Take a look at bjam --help or the docs ...
> How am I supposed to specify the Jamfiles? Currently I am working
> around by symlinking 'libboost_date_time.a ->
> libboost_date_time-gcc43-mt-1_38.a' and stating 'lib boost_date_time
> ; ' in the Jamfile.
That's not the way to use Boost libraries with Boost.Build.
> But I don't think this is the way to go, is it?
try :
using /boost : <path-to-boost-Jamroot> ;
in the relevant Jamfile/Jamroot
and then add
/boost/date_time// boost_date_time
to the sources.
That will enable all the cool Boost.Build magic :-))
Yours,
Jürgen
-- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold_at_[hidden] ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
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