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 http://www.boost.org/libs/python/doc/tutorial/doc/html/python/hello.html

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;

BOOST_PYTHON_MODULE(hello)
{
   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
   <template>@boost/libs/python/build/extension
   ;

Some useful environment variables:
PYTHON_ROOT="/usr/include/python2.5"
PYTHON_VERSION="2.5"
BOOST_ROOT="/usr/share/boost-build"

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!

Best,

Bart.


--
Bart Cramer