Boost logo

Boost-Build :

Subject: [Boost-build] test_embed fails w MSVC2008/Boost 1.41.0
From: Peter H.M. Budzelaar (budzelaa_at_[hidden])
Date: 2009-12-17 14:03:37


Hi,

I am trying to use Boost.Python for both extending and embedding, with
Windows XP. I installed Boost and built bjam from source using bootstrap.
Extending works fine, but the standard embedding quickstart example
seems to fail and it is not clear to me why (for messages and directory
listings, see below).
One thing I noticed: no .obj files related to the embedding example have
been created anywhere.

* Most recent Boost (1.41.0), from the downloaded Windows .zip file
* Most recent MSVC express (9.0.30729.1 SP) downloaded Dec 17 2009
* Python 2.5.1 from Python.org as installer package
* No specific user-config.jam

Any hint would be highly appreciated! BTW I am a novice at this.

======================================
Peter Budzelaar
======================================

##### Output from test

C:\budzelaa\boost_1_41_0\libs\python\example\quickstart>bjam test_embed
...patience...
...patience...
...found 1422 targets...
...updating 4 targets...
msvc.link
bin\test_embed.test\msvc-9.0express\debug\threading-multi\test_embed.e
xe
LINK : warning LNK4001: no object files specified; libraries used
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
bin\test_embed.test\msvc-9.0express\debug\threading-multi\test_embed.exe :
fatal
 error LNK1120: 1 unresolved externals

        call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
x86
>nul
link /NOLOGO /INCREMENTAL:NO /DEBUG /MACHINE:X86 /subsystem:console
/out:"bin\te
st_embed.test\msvc-9.0express\debug\threading-multi\test_embed.exe"
/LIBPATH:"C:
\progra~1\python25\libs"
@"bin\test_embed.test\msvc-9.0express\debug\threading-
multi\test_embed.exe.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

...failed msvc.link
bin\test_embed.test\msvc-9.0express\debug\threading-multi\te
st_embed.exe
bin\test_embed.test\msvc-9.0express\debug\threading-multi\test_embe
d.pdb...
...removing
bin\test_embed.test\msvc-9.0express\debug\threading-multi\test_embed
.pdb
...skipped
<pbin\test_embed.test\msvc-9.0express\debug\threading-multi>test_embe
d.run for lack of
<pbin\test_embed.test\msvc-9.0express\debug\threading-multi>te
st_embed.exe...
...failed updating 2 targets...
...skipped 2 targets...

##### bin directory after running the quickstart tests

 Volume in drive C is System
 Volume Serial Number is 6073-8ADB

 Directory of C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin

12/17/2009 18:15 <DIR> .
12/17/2009 18:15 <DIR> ..
12/17/2009 18:13 <DIR> msvc-9.0express
12/17/2009 18:15 <DIR> test_embed.test
12/17/2009 18:13 <DIR> test_ext.test
               0 File(s) 0 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\msvc-9.0express

12/17/2009 18:13 <DIR> .
12/17/2009 18:13 <DIR> ..
12/17/2009 18:13 <DIR> debug
               0 File(s) 0 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\msvc-9.0express\debug

12/17/2009 18:13 <DIR> .
12/17/2009 18:13 <DIR> ..
12/17/2009 19:14 <DIR> threading-multi
               0 File(s) 0 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\msvc-9.0express\debug\threading-multi

12/17/2009 19:14 <DIR> .
12/17/2009 19:14 <DIR> ..
12/17/2009 19:14 676 extending.exp
12/17/2009 19:14 1,748 extending.lib
12/17/2009 19:12 1,289,088 extending.obj
12/17/2009 19:11 203 extending.obj.rsp
12/17/2009 19:14 1,371,136 extending.pdb
12/17/2009 19:14 40,960 extending.pyd
12/17/2009 19:14 621 extending.pyd.manifest
12/17/2009 19:14 191 extending.pyd.rsp
               8 File(s) 2,704,623 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\test_embed.test

12/17/2009 18:15 <DIR> .
12/17/2009 18:15 <DIR> ..
12/17/2009 18:15 <DIR> msvc-9.0express
               0 File(s) 0 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\test_embed.test\msvc-9.0express

12/17/2009 18:15 <DIR> .
12/17/2009 18:15 <DIR> ..
12/17/2009 18:15 <DIR> debug
               0 File(s) 0 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\test_embed.test\msvc-9.0express\debug

12/17/2009 18:15 <DIR> .
12/17/2009 18:15 <DIR> ..
12/17/2009 19:22 <DIR> threading-multi
               0 File(s) 0 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\test_embed.test\msvc-9.0express\debug\threading-multi

12/17/2009 19:22 <DIR> .
12/17/2009 19:22 <DIR> ..
12/17/2009 19:22 131 test_embed.exe.rsp
               1 File(s) 131 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\test_ext.test

12/17/2009 18:13 <DIR> .
12/17/2009 18:13 <DIR> ..
12/17/2009 18:13 <DIR> msvc-9.0express
               0 File(s) 0 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\test_ext.test\msvc-9.0express

12/17/2009 18:13 <DIR> .
12/17/2009 18:13 <DIR> ..
12/17/2009 18:13 <DIR> debug
               0 File(s) 0 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\test_ext.test\msvc-9.0express\debug

12/17/2009 18:13 <DIR> .
12/17/2009 18:13 <DIR> ..
12/17/2009 18:15 <DIR> threading-multi
               0 File(s) 0 bytes

 Directory of
C:\budzelaa\boost_1_41_0\libs\python\example\quickstart\bin\test_ext.test\msvc-9.0express\debug\threading-multi

12/17/2009 18:15 <DIR> .
12/17/2009 18:15 <DIR> ..
12/17/2009 19:14 950 test_ext
12/17/2009 19:14 950 test_ext.output
12/17/2009 19:14 9 test_ext.test
               3 File(s) 1,909 bytes

     Total Files Listed:
              12 File(s) 2,706,663 bytes
              35 Dir(s) 13,057,007,616 bytes free


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk