Tony May wrote:
Hi Jurko,
Thanks for the help. It said it passed the test:
...patience... ...found 1202 targets... ...updating 3 targets... msvc.link.dll bin\msvc-8.0express\debug\threading-multi\hello_ext.pyd Creating library bin\msvc-8.0express\debug\threading-multi\hello_ext.lib and object bin\msvc-8.0express\debug\threading-multi\hello_ext.exp capture-output bin\hello.test\msvc-8.0express\debug\threading-multi\hello 1 file(s) copied. **passed** bin\hello.test\msvc-8.0express\debug\threading-multi\hello.test ...updated 3 targets...
but when I tried to import in the python script:
import hello_ext
it says:
Traceback (most recent call last): File "hello.py", line 6, in <module> import hello_ext ImportError: No module named hello_ext
Is there supposed to be a hello_ext.dll in C:\Program Files\boost\boost_1_35_0\libs\python\example\tutorial\bin\msvc-8.0express\debug\threading-multi or C:\Program Files\boost\boost_1_35_0\libs\python\example\tutorial\bin\hello.test\msvc-8.0express\debug\threading-multi
By default Boost.Build deletes some binaries used in testing when the test passes. try deleting bin\hello.test\msvc-8.0express\debug\threading-multi\hello.test, adding "-d+2" and "--preserve-test-targets" to your bjam command line, and running the test again. Then you can see what it's doing. -- Dave Abrahams BoostPro Computing http://www.boostpro.com