Boost logo

Boost-Build :

From: Bart Cramer (bart.cramer_at_[hidden])
Date: 2007-11-13 03:32:32

Dear Joel, others,

I downloaded the latest release of Boost as source, and the documentation
that comes with it refers to the same files, with the same format. I did
everything that is in my (limited!) capabilities to get it working. Using
the source code, and compile some needed parts didn't solve any problem

I still have the old tutorial files:


// Copyright Joel de Guzman 2002-2004. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt
// or copy at
// Hello World Example from the tutorial
// [Joel de Guzman 10/9/2002]

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

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

    def("greet", greet);


# Copyright David Abrahams 2006. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at

# 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
  : ../../../.. ;

# Set up the project-wide requirements that everything uses the
# boost_python library from the project whose global ID is
# /boost/python.
  : requirements <library>/boost/python//boost_python ;

# Declare a Python extension called hello.
python-extension hello : hello.cpp ;

During my search, googling around for the magic step, I encountered a couple
of websites that were unsatisfied with the way the Boost Python library is
working. The bjam tool is often referred to as a source of annoyances. For a
novice, the first question that arises is: Why is it done in such a
difficult way? Why not just #include <boost/python.hpp> or something
similar, and it just works with my usual way of compiling?

I sincerely hope that anyone is able to give a hand, as this bridge is a
crucial one in my PhD project.



On Nov 11, 2007 11:02 AM, Joel de Guzman <joel_at_[hidden]> wrote:

> Bart Cramer wrote:
> > 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
> >
> Hi Bart,
> The doc you are looking at is already outdated. Please check out
> the one from the Boost SVN head. Sorry for the confusion.
> Regards,
> --
> Joel de Guzman
> _______________________________________________
> Unsubscribe & other changes:

Bart Cramer
Dudweilerstrasse 31
66111 Saarbrucken, Germany
0049 174 8446952
Bedumerstraat 25
9716 BB Groningen, the Netherlands
0031 6 42440326

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