Opened 14 years ago

Closed 13 years ago

#2001 closed Support Requests (fixed)

hello example doesn't work

Reported by: riman@… Owned by: Dave Abrahams
Milestone: Boost 1.36.0 Component: python USE GITHUB
Version: Boost 1.35.0 Severity: Problem
Keywords: hello_ext Cc:

Description

I am trying to run the standard hello.cpp example to use in with Python. It is described here: http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/hello.html. The problem is that I can't find hello_ext.so file (or any file with patterns hello*so, hello*pyc) after successful completion of bjam (no error messages). More over I can see the line gcc.link.dll bin/gcc-4.2.3/debug/hello_ext.so during bjam running but only hello.o file gets created in my bin/gcc4.2.3/debug directory. I've tried to use it but failed. My OS is Ubuntu 2.6.24-18-server, Python is 2.5. Please help. Thank you.

Change History (2)

comment:1 by René Rivera, 14 years ago

Component: bjamPython
Owner: changed from René Rivera to Dave Abrahams

comment:2 by Vladimir Prus, 13 years ago

Resolution: fixed
Status: newclosed

I think you've missed that bit in docs:

Starting from Boost 1.35, bjam erases the generated executables (e.g. pyd file). To keep bjam from doing that, pass --preserve-test-targets to bjam

This is no longer the case in 1.39, so I have adjusted tutorial to no longer say that ([53379]), and this ticket should be now fixed.

Note: See TracTickets for help on using tickets.