[C++-sig] Re: building boost.python on windows

Olivier Ravard olivier.ravard at novagrid.com
Wed May 12 10:15:17 CEST 2004


----- Original Message -----
From: "David Abrahams" <dave at boost-consulting.com>
To: <c++-sig at python.org>
Sent: Tuesday, May 11, 2004 4:26 PM
Subject: [C++-sig] Re: building boost.python on windows


> "Olivier Ravard" <olivier.ravard at novagrid.com> writes:
>
> >>
> >> Please post the command-line you used and the command-lines produced
> >> by bjam (you can pass -n or -d+2 to see those -- do they look OK to
> >> you?), along with the first few errors.
> >>
> >
> > Finally, I compiled boost.python with mingw and it works...
>
> We'd still like to see the requested information so we can fix
> whatever bug caused your problem.
>
Here is all the commands I've made :


set PYTHON_ROOT=c:\Python23
set PYTHON_VERSION=2.3
set MSVCDir="c:\Program Files\Microsoft Visual C++ Toolkit 2003"
bjam "-sTOOLS=vc7.1"

Everythings compiles well until :

vc-Link
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc7.1\debug\boost_pyth
on_debug.dll ..\..\..\bin\boost\libs\python\build\boost_
python.dll\vc7.1\debug\boost_python_debug.lib
   Creating library
..\..\..\bin\boost\libs\python\build\boost_python.dll\vc7.1\debug\boost_pyth
on_debug.lib and object ..\..\..\bin\boost\l
ibs\python\build\boost_python.dll\vc7.1\debug\boost_python_debug.exp
iterator.obj : error LNK2001: unresolved external symbol "void __cdecl
operator delete[](void *)" (??_V at YAXPAX@Z)
object_protocol.obj : error LNK2001: unresolved external symbol "void
__cdecl operator delete[](void *)" (??_V at YAXPAX@Z)
object_operators.obj : error LNK2001: unresolved external symbol "void
__cdecl operator delete[](void *)" (??_V at YAXPAX@Z)
errors.obj : error LNK2019: unresolved external symbol "void __cdecl
operator delete[](void *)" (??_V at YAXPAX@Z) referenced in function $L268
94
module.obj : error LNK2001: unresolved external symbol "void __cdecl
operator delete[](void *)" (??_V at YAXPAX@Z)
builtin_converters.obj : error LNK2001: unresolved external symbol "void
__cdecl operator delete[](void *)" (??_V at YAXPAX@Z)
arg_to_python_base.obj : error LNK2019: unresolved external symbol "void
__cdecl operator delete[](void *)" (??_V at YAXPAX@Z) referenced in fu
nction "class std::basic_istream<char,struct std::char_traits<char> > &
__cdecl std::operator>><char,struct std::char_traits<char>,class std
::allocator<char> >(class std::basic_istream<char,struct
std::char_traits<char> > &,class std::basic_string<char,struct
std::char_traits<cha
r>,class std::allocator<char> > &)"
(??$?5DU?$char_traits at D@std@@V?$allocator at D@1@@std@@YAAAV?$basic_istream at DU?
$char_traits at D@std@@@0 at AAV10
@AAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@0@@Z)
enum.obj : error LNK2001: unresolved external symbol "void __cdecl operator
delete[](void *)" (??_V at YAXPAX@Z)
class.obj : error LNK2001: unresolved external symbol "void __cdecl operator
delete[](void *)" (??_V at YAXPAX@Z)
function.obj : error LNK2001: unresolved external symbol "void __cdecl
operator delete[](void *)" (??_V at YAXPAX@Z)
pickle_support.obj : error LNK2019: unresolved external symbol "void __cdecl
operator delete[](void *)" (??_V at YAXPAX@Z) referenced in functi
on "public: __thiscall
boost::python::error_already_set::error_already_set(void)"
(??0error_already_set at python@boost@@QAE at XZ)
tuple.obj : error LNK2001: unresolved external symbol "void __cdecl operator
delete[](void *)" (??_V at YAXPAX@Z)
str.obj : error LNK2001: unresolved external symbol "void __cdecl operator
delete[](void *)" (??_V at YAXPAX@Z)
from_python.obj : error LNK2001: unresolved external symbol "void __cdecl
operator delete[](void *)" (??_V at YAXPAX@Z)
registry.obj : error LNK2001: unresolved external symbol "void __cdecl
operator delete[](void *)" (??_V at YAXPAX@Z)
numeric.obj : error LNK2019: unresolved external symbol "void __cdecl
operator delete[](void *)" (??_V at YAXPAX@Z) referenced in function "pub
lic: virtual void * __thiscall boost::python::error_already_set::`vector
deleting destructor'(unsigned int)" (??_Eerror_already_set at python@b
oost@@UAEPAXI at Z)
list.obj : error LNK2001: unresolved external symbol "void __cdecl operator
delete[](void *)" (??_V at YAXPAX@Z)
long.obj : error LNK2001: unresolved external symbol "void __cdecl operator
delete[](void *)" (??_V at YAXPAX@Z)
dict.obj : error LNK2001: unresolved external symbol "void __cdecl operator
delete[](void *)" (??_V at YAXPAX@Z)

and so on...

> --
> Dave Abrahams
> Boost Consulting
> http://www.boost-consulting.com
>
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig





More information about the Cplusplus-sig mailing list