Boost logo

Boost-Build :

From: Bart Cramer (bart.cramer_at_[hidden])
Date: 2007-11-09 15:12:56

Dear all,

almost ashamed to ask this, and it must be something very obvious, but I am
not even able to compile the tutorial example of the Boost's Python package.
The website of the tutorial is

The contents of the files are the following:

-- hello.cpp --

char const* greet()
  return "hello, world";

#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
using namespace boost::python;

   def("greet", greet);

-- Jamfile --

# This is the top of our own project tree
project-root .;

import python ;

extension hello
: hello.cpp
   # requirements and dependencies for Boost.Python extensions

Some useful environment variables:

The error that I get is the following:

~/test$ bjam
Jamfile:2: in load-aux
rule project-root unknown in module Jamfile</home/bart/test>.
/usr/share/boost-build/build/project.jam:318: in load-jamfile
/usr/share/boost-build/build/project.jam:68: in load
/usr/share/boost-build/build/project.jam:170: in project.find
/usr/share/boost-build/build-system.jam:148: in load
/usr/share/boost-build/kernel/modules.jam:261: in import
/usr/share/boost-build/kernel/bootstrap.jam:132: in boost-build
/usr/share/boost-build/boost-build.jam:1: in module scope

The website states that I should make a Jamrules file as well. This one was
not included in the documentation, nor was the link on the Python tutorial
website working. Also the Internet was not able to give me useful
information about this file. Maybe this may give a hint on where this is
going wrong.

Thank you very much in advance for your help!



Bart Cramer

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at