Boost logo

Boost :

Subject: [boost] [python] 32-bits target build errors with MSVC under Windows x64
From: KTC (ktc_at_[hidden])
Date: 2010-08-28 20:29:04


Hi,

Attempts to build 32-bits target libraries/dll of Boost.Python with MSVC
running under Windows 7 x64 ends with errors. The 6 *.lib & *.dll of the
form boost_python-vc*-mt* are not built.

No problems is experienced if MSVC is running under 32-bits version of
Windows (XP Pro SP3 & 7 Ultimate tested), or the target is 64-bits
libraries even when running under Win7 x64.

The below (sample) errors was produced with Windows 7 Ultimate x64,
Visual Studio (2008 Pro & 2010 Ultimate tested), and ActiveState
ActivePython (2.6 & 2.7 tested).

msvc.link.dll
x86\boost\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_44.dll
    Creating library
x86\boost\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_44.lib
and object
x86\boost\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_44.exp
function.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyErr_Format referenced in function "void __cdecl
boost::python::numeric::`anonymous namespace'::throw_load_failure(void)"
(?throw_load_failure@?A0x9a30ad83_at_numeric@python_at_boost@@YAXXZ)
from_python.obj : error LNK2001: unresolved external symbol
__imp__PyErr_Format
registry.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
class.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
numeric.obj : error LNK2001: unresolved external symbol
__imp__PyExc_ImportError
numeric.obj : error LNK2019: unresolved external symbol
__imp__PyErr_Clear referenced in function "bool __cdecl
boost::python::numeric::`anonymous namespace'::load(bool)"
(?load@?A0x9a30ad83_at_numeric@python_at_boost@@YA_N_N_at_Z)
class.obj : error LNK2001: unresolved external symbol __imp__PyErr_Clear
<snip>

(Full log can be view at <http://pastebin.com/b62UaEJV>.)

Any ideas of a workaround or fix?

Regards,

KTC


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk