[C++-sig] can't get Boost.Python tutorial's "Hello World" example to work (on linux)

ted sandler tsandler at seas.upenn.edu
Sun Oct 21 21:26:28 CEST 2007

Hi all,

I am running linux, and although the Boost.Python "Quickstart" example
works fine, I am not able to get the Boost.Python "Hello World" example

The quickstart example is located here

The hello-world example is located here:

There are problems with the documentation on the hello-world web page
(I guess it's out of date).  The example files in the Boost-distribution
are different from those described in the "hello-world" tutorial.
Specifically, the Boost distribution contains a "Jamroot" file while the
web page discusses both a "Jamfile" and a "Jamrules" file (whose
hyperlink is broken).

Anyway, when I cd to the "hello-world" example directory and type bjam
at the prompt, bjam fails with the error message I've listed below.  Any
help getting me up and running here would be great!

Thanks a bunch,

Jamroot:17: in modules.load
rule python-extension unknown in module
/home/ted/boost_1_34_1/tools/build/v2/build/project.jam:312: in load-jamfile
/home/ted/boost_1_34_1/tools/build/v2/build/project.jam:68: in load
/home/ted/boost_1_34_1/tools/build/v2/build/project.jam:170: in project.find
/home/ted/boost_1_34_1/tools/build/v2/build-system.jam:237: in load
in import
in boost-build
/home/ted/boost_1_34_1/libs/python/example/boost-build.jam:7: in module

More information about the Cplusplus-sig mailing list