I'm still not able to see a dll. There is a pyd file created and a .lib file. Should the dll
file be in the same directory and should it be called hello_ext.dll?

C:\Program Files\boost\boost_1_35_0\libs\python\example\tutorial>bjam -d+2 --pre
serve-test-targets
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).

file bin\msvc-8.0express\debug\threading-multi\hello_ext.pyd.rsp

"bin\msvc-8.0express\debug\threading-multi\hello.obj"

"C:\Program Files\boost\boost_1_35_0\bin.v2\libs\python\build\msvc-8.0express\de
bug\threading-multi\boost_python-vc80-mt-gd-1_35.lib"

"python25.lib"

msvc.link.dll bin\msvc-8.0express\debug\threading-multi\hello_ext.pyd

        call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86 >
nul
link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /subsystem:console /out:"bin\msvc-8.0ex
press\debug\threading-multi\hello_ext.pyd" /IMPLIB:"bin\msvc-8.0express\debug\th
reading-multi\hello_ext.lib" /LIBPATH:"C:\Python25\libs"   @"bin\msvc-8.0express
\debug\threading-multi\hello_ext.pyd.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
        if exist "bin\msvc-8.0express\debug\threading-multi\hello_ext.pyd.manife
st" (
            mt -nologo -manifest "bin\msvc-8.0express\debug\threading-multi\hell
o_ext.pyd.manifest" "-outputresource:bin\msvc-8.0express\debug\threading-multi\h
ello_ext.pyd;2"
        )

   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

    set Path=C:\Program Files\boost\boost_1_35_0\bin.v2\libs\python\build\msvc-8
.0express\debug\threading-multi;C:\Program Files\boost\boost_1_35_0\libs\python\
example\tutorial\bin\msvc-8.0express\debug\threading-multi;C:\Python25;C:\Python
25\libs;%Path%

    set PYTHONPATH=bin\msvc-8.0express\debug\threading-multi
 C:\Python25\python "hello.py"   > "bin\hello.test\msvc-8.0express\debug\threadi
ng-multi\hello.output" 2>&1
    set status=%ERRORLEVEL%
    echo. >> "bin\hello.test\msvc-8.0express\debug\threading-multi\hello.output"

    echo EXIT STATUS: %status% >> "bin\hello.test\msvc-8.0express\debug\threadin
g-multi\hello.output"
    if %status% EQU 0 (
        copy "bin\hello.test\msvc-8.0express\debug\threading-multi\hello.output"
 "bin\hello.test\msvc-8.0express\debug\threading-multi\hello"
    )
    set verbose=0
    if %status% NEQ 0 (
        set verbose=1
    )
    if %verbose% EQU 1 (
        echo ====== BEGIN OUTPUT ======
        type "bin\hello.test\msvc-8.0express\debug\threading-multi\hello.output"

        echo ====== END OUTPUT ======
    )
    exit %status%

        1 file(s) copied.
**passed** bin\hello.test\msvc-8.0express\debug\threading-multi\hello.test

    echo passed > bin\hello.test\msvc-8.0express\debug\threading-multi\hello.tes
t

On Thu, Jun 26, 2008 at 10:59 AM, David Abrahams <dave@boostpro.com> wrote:
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
_______________________________________________