Calum Lind
2017-06-02 22:05:01 UTC
I have created a new Windows 7 VM but I am unable to build the python
bindings.
Using boost 1.63 and MSVC 14.0 (2015)
b2 libtorrent-link=static boost-link=static release optimization=space
encryption=on crypto=openssl include=C:\OpenSSL-Win32\include
linkflags=/LIBPATH:C:\OpenSSL-Win32\lib -j%NUMBER_OF_PROCESSORS% --hash
toolset=msvc
This is the error output:
Creating library bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.lib and
object bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.exp
alert.obj : error LNK2019: unresolved external symbol "class
libtorrent::alert const volatile * __cdecl boost::get_pointer<class
libtorrent::alert const volatile >(class libtorrent::alert const volatile
*)" (??$get_pointer@$$***@libtorrent@@@boost@@***@libtorrent
@@PDV12@@Z) referenced in function "private:static struct _typeobject *
__cdecl boost::python::objects::make_ptr_instance<class
libtorrent::alert,struct boost::python::objects::pointer_holder<class
boost::shared_ptr<class libtorrent::alert>,class libtorrent::alert>
(??$***@Valert@libtorrent@@@?$***@Valert
@libtorrent@@U?$***@V?$***@Valert@libtorrent@@@boost@
@***@libtorrent@@@***@python@boost@@@***@python@boost@
@CAPAU_typeobject@@U?$bool_@$***@mpl@***@PDValert@libtorrent@@@Z)
error_code.obj : error LNK2019: unresolved external symbol "class
boost::system::error_category const volatile * __cdecl
boost::get_pointer<class boost::system::error_category const volatile
$$***@system@boost@@@boost@@***@system
@***@PDV120@@Z) referenced in function "private: static struct _typeobject *
__cdecl boost::python::objects::make_ptr_instance<class
boost::system::error_category,struct
boost::python::objects::pointer_holder<class boost::system::error_category
*,class boost::system::error_category> >::get_derived_class_object<class
boost::system::error_category>(struct boost::mpl::bool_<1>,class
boost::system::error_category const volatile *)"
(??$***@Verror_category@***@boost
@@@?$***@Verror_category@***@boost
@@U?$***@PAVerror_category@***@boost@@V123@@***@python@3@
@***@python@boost@@CAPAU_typeobject@@U?$bool_@$***@mpl
@***@PDVerror_category@***@3@@Z)
bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.pyd : fatal error LNK1120:
2 unresolved externals
call
"C:\Users\IEUser\AppData\Local\Temp\b2_msvc_14.0_vcvarsall_x86.cmd"
/out:"bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.pyd"
/IMPLIB:"bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.lib"
/LIBPATH:"C:\Python27\libs" /LIBPATH:C:/OpenSSL-Win32/lib /OPT:ICF=5
/OPT:REF @"bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.pyd.rsp"
if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
...failed msvc.link.dll bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.pyd
bin\
90aef4b47feb20127cc129bcca93ec9d\libtorrent.lib...
...removing bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.lib
...failed updating 2 targets...
bindings.
Using boost 1.63 and MSVC 14.0 (2015)
b2 libtorrent-link=static boost-link=static release optimization=space
encryption=on crypto=openssl include=C:\OpenSSL-Win32\include
linkflags=/LIBPATH:C:\OpenSSL-Win32\lib -j%NUMBER_OF_PROCESSORS% --hash
toolset=msvc
This is the error output:
Creating library bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.lib and
object bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.exp
alert.obj : error LNK2019: unresolved external symbol "class
libtorrent::alert const volatile * __cdecl boost::get_pointer<class
libtorrent::alert const volatile >(class libtorrent::alert const volatile
*)" (??$get_pointer@$$***@libtorrent@@@boost@@***@libtorrent
@@PDV12@@Z) referenced in function "private:static struct _typeobject *
__cdecl boost::python::objects::make_ptr_instance<class
libtorrent::alert,struct boost::python::objects::pointer_holder<class
boost::shared_ptr<class libtorrent::alert>,class libtorrent::alert>
::get_derived_class_object<class libtorrent::alert>(struct
boost::mpl::bool_<1>,class libtorrent::alert const volatile *)"(??$***@Valert@libtorrent@@@?$***@Valert
@libtorrent@@U?$***@V?$***@Valert@libtorrent@@@boost@
@***@libtorrent@@@***@python@boost@@@***@python@boost@
@CAPAU_typeobject@@U?$bool_@$***@mpl@***@PDValert@libtorrent@@@Z)
error_code.obj : error LNK2019: unresolved external symbol "class
boost::system::error_category const volatile * __cdecl
boost::get_pointer<class boost::system::error_category const volatile
$$***@system@boost@@@boost@@***@system
@***@PDV120@@Z) referenced in function "private: static struct _typeobject *
__cdecl boost::python::objects::make_ptr_instance<class
boost::system::error_category,struct
boost::python::objects::pointer_holder<class boost::system::error_category
*,class boost::system::error_category> >::get_derived_class_object<class
boost::system::error_category>(struct boost::mpl::bool_<1>,class
boost::system::error_category const volatile *)"
(??$***@Verror_category@***@boost
@@@?$***@Verror_category@***@boost
@@U?$***@PAVerror_category@***@boost@@V123@@***@python@3@
@***@python@boost@@CAPAU_typeobject@@U?$bool_@$***@mpl
@***@PDVerror_category@***@3@@Z)
bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.pyd : fatal error LNK1120:
2 unresolved externals
call
"C:\Users\IEUser\AppData\Local\Temp\b2_msvc_14.0_vcvarsall_x86.cmd"
nul
link /NOLOGO /INCREMENTAL:NO /DLL /MACHINE:X86 /MANIFEST /subsystem:console/out:"bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.pyd"
/IMPLIB:"bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.lib"
/LIBPATH:"C:\Python27\libs" /LIBPATH:C:/OpenSSL-Win32/lib /OPT:ICF=5
/OPT:REF @"bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.pyd.rsp"
if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
...failed msvc.link.dll bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.pyd
bin\
90aef4b47feb20127cc129bcca93ec9d\libtorrent.lib...
...removing bin\90aef4b47feb20127cc129bcca93ec9d\libtorrent.lib
...failed updating 2 targets...