[C++-sig] boost python installation problem

Jayram jmoorkan at uci.edu
Tue May 22 04:56:25 CEST 2007


Hi all,

My configuration is the following:

MS-Visual Studio 95 - "vc-8_0", Boost = 1.33.1, Python = 2.5

I was trying to build python boost using the command:

>> bjam -sTOOLS=vc-8_0 -sPYTHON_VERSION=2.5 -sPYTHON_ROOT=C:\Python25"

A part of build output is the following which starts immediately after 
compiling all the files.
---------------------------
vc-C++ 
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-8_0\debug\threading-multi\object_operators.obj
object_operators.cpp
vc-C++ 
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-8_0\debug\threading-multi\wrapper.obj
wrapper.cpp
vc-Link 
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-8_0\debug\threading-multi\boost_python_debug.dll 
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-8_0\debug\threading-multi\boost_python_debug.lib
   Creating library 
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-8_0\debug\threading-multi\boost_python_debug.lib 
and object 
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc-8_0\debug\threading-multi\boost_python_debug.exp
function.obj : error LNK2019: unresolved external symbol __imp__PyErr_Format 
referenced in function "public: virtual void * __thiscall 
boost::python::error_already_set::`vector deleting destructor'(unsigned 
int)" (??_Eerror_already_set at python@boost@@UAEPAXI at Z)
numeric.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
from_python.obj : error LNK2001: unresolved external symbol 
__imp__PyErr_Format
registry.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
-------------------------
and the unresolved external symbol error continues and 
boost_python_debug.dll is not generated.

I have been working only in GNU/Linux build environment, BUT M$ Windows is 
totally new to me.
So can anyone point out how to fix this error ?

What I understood is that vc-Link does not find some important libraries 
during linking which is associated with Python and Boost ?
But I am unable to proceed from here to determine what is the problem and 
how to fix it ?

Thanks and any suggestion to me will be helpful.

- Jay








More information about the Cplusplus-sig mailing list