Boost logo

Boost-Build :

Subject: Re: [Boost-build] right way to use boost in own project
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-05-21 07:48:29


Anatoly Shirokov wrote:

> Vladimir Prus:
>>
>> If you have Boost source tree, you can add this to your project:
>>
>> use-project /boost : <path-to-boost-source-tree> ;
>>
>> Otherwise, take a look at contrib/boost.jam -- it has comments
>> about usage.
>>
>
> Thank you very much Vladimir.
>
> I put the following into my Jamroot:
>
> import os ;
> local BOOST = [ os.environ BOOST ] ;
> use-project /boost : $(BOOST) ;
>
> and made reference to the boost/regex//boost_regex library in the
> Jamfile file:
>
> exe app : app.cpp /boost/regex//boost_regex ;
>
> but I could not build my project:
>
> >bjam
> c:\Tools\boost_1_38_0\libs\graph\build\Jamfile.v2:41: in modules.load
> rule message unknown in module
> Jamfile</c:/Tools/boost_1_38_0/libs/graph/build>.
> C:/Tools/boost-build/build\project.jam:312: in load-jamfile
> C:/Tools/boost-build/build\project.jam:68: in project.load
> C:/Tools/boost-build/build\project.jam:718: in project.use
> C:/Tools/boost-build/build\project.jam:94: in load-used-projects
> C:/Tools/boost-build/build\project.jam:79: in project.load
> C:/Tools/boost-build/build\project.jam:718: in project.use
> C:/Tools/boost-build/build\project.jam:94: in load-used-projects
> C:/Tools/boost-build/build\project.jam:79: in load
> C:/Tools/boost-build/build\project.jam:120: in load-parent
> C:/Tools/boost-build/build\project.jam:447: in initialize
> C:/Tools/boost-build/build\project.jam:301: in load-jamfile
> C:/Tools/boost-build/build\project.jam:68: in load
> C:/Tools/boost-build/build\project.jam:120: in load-parent
> C:/Tools/boost-build/build\project.jam:447: in initialize
> C:/Tools/boost-build/build\project.jam:301: in load-jamfile
> C:/Tools/boost-build/build\project.jam:68: in load
> C:/Tools/boost-build/build\project.jam:170: in project.find
> C:/Tools/boost-build\build-system.jam:248: in load
> C:\Tools\boost-build\kernel\modules.jam:261: in import
> C:\Tools\boost-build\kernel\bootstrap.jam:132: in boost-build
> C:\Tools\boost-build\boost-build.jam:1: in module scope
>
> What is wrong?
>
> >bjam --version
> Boost.Build V2 (Milestone 12)
> Boost.Jam 03.1.17

Your version of Boost.Build is older than required by C++ Boost. I suggest
you grab nightly build off http://boost.org/boost-build2

- Volodya


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