Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2006-06-25 09:57:54


Lally Singh wrote:
> Hey all, simple question (please redirect me if this is the wrong place):
> I've got a project that needs linking with some boost libraries, and I
> don't know how to tell bjam to do it.
>
> The Jamfile ends up in the files getting compiled, but the libraries
> aren't linked in, causing the build to fail.
>
> My Jamfile:
>
> exe mfront : ./driver/driver.cpp ./main.cpp ./parser/generator.cpp :
> <lib>filesystem <lib>wave ;

You'd be better switching over to Boost Build V2 as V1 is being phased
out. In V2, this would be:

   exe mfront
     :
       ./driver/driver.cpp ./main.cpp ./parser/generator.cpp
       $(BOOST_ROOT)//filesystem
       $(BOOST_ROOT)//wave
     ;

This might work for V1: i.e. replacing <lib>wave with either
<lib>boost//wave or <lib>$(BOOST_ROOT)//wave, but I don't
know enough about V1 to confirm that this is correct.

HTH,
- Reece
_________________________________________________________________
Try Live.com - your fast, personalized homepage with all the things you care about in one place.
http://www.live.com/getstarted


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