[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
working.
The quickstart example is located here
http://www.boost.org/libs/python/doc/building.html.
The hello-world example is located here:
http://www.boost.org/libs/python/doc/tutorial/doc/html/python/hello.html.
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,
-Ted
Jamroot:17: in modules.load
rule python-extension unknown in module
Jamfile</home/ted/boost_1_34_1/libs/python/example/tutorial>.
/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
/home/ted/boost_1_34_1/libs/python/example/../../../tools/build/v2/kernel/modules.jam:261:
in import
/home/ted/boost_1_34_1/libs/python/example/../../../tools/build/v2/kernel/bootstrap.jam:132:
in boost-build
/home/ted/boost_1_34_1/libs/python/example/boost-build.jam:7: in module
scope
More information about the Cplusplus-sig
mailing list