[C++-sig] Cannot build Boost.Python

David Aldrich David.Aldrich at EU.NEC.COM
Tue Jul 6 16:32:07 CEST 2010


I am new to Boost.Python and am trying to build its library using Visual C++ 2008 on Windows XP.

I have downloaded and unzipped boost_1_43_0.zip and I have installed boost-jam-3.1.18-1-ntx86.zip.

Next, I executed:

C:\boost_1_43_0\libs\python\example\quickstart>\boost-jam-3.1.18-1-ntx86\bjam toolset=msvc --verbose-test test

The output I get is:

msvc.link bin\test_embed.test\msvc-10.0\debug\threading-multi\test_embed.exe
LINK : warning LNK4001: no object files specified; libraries used
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
bin\test_embed.test\msvc-10.0\debug\threading-multi\test_embed.exe : fatal error LNK1120: 1 unresolved externals

        call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DEBUG /MACHINE:X86 /subsystem:console /out:"bin\test_embed.test\msvc-10.0\debug\threading-multi\test_em

...failed msvc.link bin\test_embed.test\msvc-10.0\debug\threading-multi\test_embed.exe bin\test_embed.test\msvc-10.0\debug\threading-
...removing bin\test_embed.test\msvc-10.0\debug\threading-multi\test_embed.pdb
...skipped <pbin\test_embed.test\msvc-10.0\debug\threading-multi>test_embed.run for lack of <pbin\test_embed.test\msvc-10.0\debug\thr
...failed updating 2 targets...
...skipped 2 targets...

I am surprised at the mention of Visual Studio 10.0 because I only have Visual Studio 2008 and Visual C++ 2008 Express installed.

Please will anyone suggest what is wrong?

Would it be better for me to use the pre-built binaries provided by Boost Consulting?

Best regards


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20100706/e8485cc6/attachment.html>

More information about the Cplusplus-sig mailing list