Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-04-12 05:53:19


On Wednesday 12 April 2006 13:17, Renaud Lepere wrote:
> I would like to use boost c++ libraries with bbv2. I have
> a problem for libraries containing true libs (not
> libraries with only headers) with gcc. (under msvc linking
> is done automatically #pragma comment(lib, name)).
>
> I compiled installed the latest boost c++ libraries
> in c:/Boost/lib and in c:/boost/include using bbv1 as
> described in the documentation.
>
> c:/boost/lib contains a lot of libraries corresponding
> to the availables runtimes for example
> (libboost_serialization-gcc-mt-1_33.lib).
>
> So i can possibly use prebuilt targets as described in
> the bbv2 manual. But is there a better way to do it ?

Yes,

  using boost : the-directory-with-boost-source ;

  exe your_exe : source.cpp /boost//boost_filesystem ;

This will automatically build the requested Boost library and link it with
your application.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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