[C++-sig] helloworld example compiles and passes test but wont run on its own

David Abrahams dave at boostpro.com
Fri Jul 11 02:24:22 CEST 2008

on Thu Jul 10 2008, FoxMulder900 <foxmulder900-AT-yahoo.com> wrote:

> Hello, I have gotten the Boost-Python helloworld example to compile with no
> errors and it even passes the test. However I am confused as to where to go
> from here because the example hello.py will not run on its own because there
> is no hello_ext module. There is a hello_ext.lib .exp .obj etc, but how
> would I actually get python's import statement to recognize these? Any help
> is much appreciated!

The extension module was probably deleted when the test passed.  Try
passing "-a --preserve-test-targets" next time you invoke bjam (you can
drop the -a thereafter).

Dave Abrahams
BoostPro Computing

More information about the Cplusplus-sig mailing list