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 either.

I still have the old tutorial files:

hello.cpp:

//  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 http://www.boost.org/LICENSE_1_0.txt)
//  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;

BOOST_PYTHON_MODULE(hello)
{
    def("greet", greet);
}

Jamroot

# Copyright David Abrahams 2006. Distributed under the Boost
# Software License, Version 1.0. (See 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
  : ../../../.. ;

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

Best,

Bart.



On Nov 11, 2007 11:02 AM, Joel de Guzman < joel@boost-consulting.com> 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
> http://www.boost.org/libs/python/doc/tutorial/doc/html/python/hello.html

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
http://www.boost-consulting.com
http://spirit.sf.net

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build



--
Bart Cramer

Dudweilerstrasse 31
66111 Saarbrucken, Germany
0049 174 8446952

Bedumerstraat 25
9716 BB Groningen, the Netherlands
0031 6 42440326

bart.cramer@gmail.com