Boost logo

Boost-Build :

Subject: Re: [Boost-build] Newbie trying to build hello world for python...
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-10-18 01:51:23


David Montgomery wrote:

>
> Hi,
>
> Env
> RH Linux
> g++ 4.2.1
> boost_1_36_0
>
> I am trying to build the hello world.cpp app for boost python
> when I run bjam...below is the error I get...
>
> At the very bottom is my jamroot file...
>
> So...what am I doing wrong?
>
> Thanks
>
>
> bjamjamroot:14: in modules.load*** argument error* rule use-project ( id : where )* called with: (
> boost : /usr/local/include/boost-1_36/boost; project : requirements
> /usr/local/include/boost-1_36/boost/python/boost_python )* extra argument
> project/usr/share/boost-build/build/project.jam:970:see definition of rule 'use-project' being
> called/usr/share/boost-build/build/project.jam:309: in
> load-jamfile/usr/share/boost-build/build/project.jam:62: in
> load/usr/share/boost-build/build/project.jam:169: in
> project.find/usr/share/boost-build/build-system.jam:521: in
> load/usr/share/boost-build/kernel/modules.jam:281: in
> import/usr/share/boost-build/kernel/bootstrap.jam:128: in
> boost-build/usr/share/boost-build/boost-build.jam:8: in module scope
>
>
>
> # Copyright David Abrahams 2006. Distributed under the Boost# Software License, Version 1.0. (See

It would have helped if you configure your mail client to not messup the text line this.

> # accompanying# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
> # Specify the path to the Boost project. If you move this project,# adjust this path to refer to
> # the Boost root directory.use-project boost : /usr/local/include/boost-1_36/boost;

You are missing space before the semicolon above.

> # Set up the project-wide requirements that everything uses the# boost_python library from the
> # project whose global ID is# /boost/python.project : requirements
> # /usr/local/include/boost-1_36/boost/python/boost_python ; Declare a Python extension called
> # hello.python-extension hello : hello.cpp ;

- 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