Hi all, I am new to Boost.Python. Following the instruction in the help, I try to compile the quickstart example but there are lots of error
I am using MSVC++ 2010, python 3.1 and Boost.Python 1.46.1 As stated in the help, I first install the boost.build and set the user-config.jam so the path of my python are visible to the builder using python : 3.1 : D:/Applications/Python : D:/Applications/Python/include : D:/Applications/Python/libs ; Then, by running the command bjam toolset=msvc --verbose-test test Some issues are pop out D:\Programs\BOOSTS\BoostPython\libs\python\example\MyProject\GetStatistics>bjam toolset=msvc --verbose-test test ...patience... ...patience... ...found 1572 targets... ...updating 21 targets... common.mkdir bin\test_ext.test common.mkdir bin\test_ext.test\msvc-10.0 common.mkdir bin\test_ext.test\msvc-10.0\debug common.mkdir bin\test_ext.test\msvc-10.0\debug\threading-multi copy test_extending.py Invalid Command copy /b + this-file-does-not-exist-A698EE7806899E69 "test_extending.py" "bi n\test_ext.test\msvc-10.0\debug\threading-multi\test_extending.py" ...failed copy test_extending.py bin\test_ext.test\msvc-10.0\debug\threading-mul ti\test_extending.py... ...removing test_extending.py function.obj : error LNK2019: unresolved external symbol __imp__PyObject_SetAttr referenced in function "public: static void __cdecl boost::python::objects::fun ction::add_to_namespace(class boost::python::api::object const &,char const *,cl ass boost::python::api::object const &,char const *)" (?add_to_namespace@functio n@objects@python@boost@@SAXABVobject@api@34@PBD01@Z) object_protocol.obj : error LNK2001: unresolved external symbol __imp__PyObject_ SetAttr function.obj : error LNK2001: unresolved external symbol __imp__PyStaticMethod_T ype function.obj : error LNK2019: unresolved external symbol __imp__PyObject_GetItem referenced in function "public: static void __cdecl boost::python::objects::fun ction::add_to_namespace(class boost::python::api::object const &,char const *,cl ass boost::python::api::object const &,char const *)" (?add_to_namespace@functio n@objects@python@boost@@SAXABVobject@api@34@PBD01@Z) object_protocol.obj : error LNK2001: unresolved external symbol __imp__PyObject_ GetItem function.obj : error LNK2019: unresolved external symbol __imp__PyMethod_New ref erenced in function _function_descr_get function.obj : error LNK2019: unresolved external symbol __imp__PyUnicode_Intern FromString referenced in function _function_get_name function.obj : error LNK2001: unresolved external symbol __imp__PyCFunction_Type life_support.obj : error LNK2019: unresolved external symbol __imp__PyWeakref_Ne wRef referenced in function "struct _object * __cdecl boost::python::objects::ma ke_nurse_and_patient(struct _object *,struct _object *)" (?make_nurse_and_patien t@objects@python@boost@@YAPAU_object@@PAU4@0@Z) life_support.obj : error LNK2019: unresolved external symbol __imp___PyObject_Ne w referenced in function "struct _object * __cdecl boost::python::objects::make_ nurse_and_patient(struct _object *,struct _object *)" (?make_nurse_and_patient@o bjects@python@boost@@YAPAU_object@@PAU4@0@Z) errors.obj : error LNK2001: unresolved external symbol __imp__PyExc_ValueError errors.obj : error LNK2001: unresolved external symbol __imp__PyExc_IndexError errors.obj : error LNK2001: unresolved external symbol __imp__PyExc_OverflowErro r errors.obj : error LNK2019: unresolved external symbol __imp__PyErr_NoMemory ref erenced in function __catch$?handle_exception_impl@python@boost@ @YA_NV?$function 0@X@2@@Z$0 module.obj : error LNK2019: unresolved external symbol __imp__PyModule_Create2 r eferenced in function "struct _object * __cdecl boost::python::detail::init_modu le(struct PyModuleDef &,void (__cdecl*)(void))" (?init_module@detail @python@boos t@@YAPAU_object@@AAUPyModuleDef@@P6AXXZ@Z) builtin_converters.obj : error LNK2019: unresolved external symbol __imp___PyUni code_AsString referenced in function "void * __cdecl boost::python::converter::` anonymous namespace'::convert_to_cstring(struct _object *)" (?convert_to_cstring @?A0x05677deb@converter@python@boost@@YAPAXPAU_object@@@Z) builtin_converters.obj : error LNK2019: unresolved external symbol __imp__PyUnic odeUCS2_FromEncodedObject referenced in function _encode_string_unaryfunc builtin_converters.obj : error LNK2001: unresolved external symbol __imp__PyBool _Type builtin_converters.obj : error LNK2001: unresolved external symbol __imp__PyFloa t_Type builtin_converters.obj : error LNK2001: unresolved external symbol __imp__PyComp lex_Type builtin_converters.obj : error LNK2019: unresolved external symbol __imp__PyLong _AsLongLong referenced in function "public: static __int64 __cdecl boost::python ::converter::`anonymous namespace'::long_long_rvalue_from_python::extract(struct _object *)" (?extract@long_long_rvalue_from_python@?A0x05677deb@converter @pytho n@boost@@SA_JPAU_object@@@Z) builtin_converters.obj : error LNK2019: unresolved external symbol __imp__PyLong _AsUnsignedLongLong referenced in function "public: static unsigned __int64 __cd ecl boost::python::converter::`anonymous namespace'::unsigned_long_long_rvalue_f rom_python::extract(struct _object *)" (?extract@unsigned_long_long_rvalue_from_ python@?A0x05677deb@converter@python@boost@@SA_KPAU_object@@@Z) builtin_converters.obj : error LNK2019: unresolved external symbol __imp__PyComp lex_RealAsDouble referenced in function "public: static class std::complex<doubl e> __cdecl boost::python::converter::`anonymous namespace'::complex_rvalue_from_ python::extract(struct _object *)" (?extract@complex_rvalue_from_python @?A0x0567 7deb@converter@python@boost@@SA?AV?$complex@N@std@@PAU_object@@@Z) builtin_converters.obj : error LNK2019: unresolved external symbol __imp__PyComp lex_ImagAsDouble referenced in function "public: static class std::complex<doubl e> __cdecl boost::python::converter::`anonymous namespace'::complex_rvalue_from_ python::extract(struct _object *)" (?extract@complex_rvalue_from_python @?A0x0567 7deb@converter@python@boost@@SA?AV?$complex@N@std@@PAU_object@@@Z) builtin_converters.obj : error LNK2019: unresolved external symbol __imp__PyUnic odeUCS2_AsWideChar referenced in function "public: static class std::basic_strin g<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __cde cl boost::python::converter::`anonymous namespace'::wstring_rvalue_from_python:: extract(struct _object *)" (?extract@wstring_rvalue_from_python @?A0x05677deb@con verter@python@boost@@SA?AV?$basic_string@_WU?$char_traits@_W@std @@V?$allocator@_ W@2@@std@@PAU_object@@@Z) builtin_converters.obj : error LNK2019: unresolved external symbol __imp__PyByte s_AsString referenced in function "public: static class std::basic_string<char,s truct std::char_traits<char>,class std::allocator<char> > __cdecl boost::python: :converter::`anonymous namespace'::string_rvalue_from_python::extract(struct _ob ject *)" (?extract@string_rvalue_from_python@?A0x05677deb@converter @python@boost @@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@ @PAU_object@@ @Z) builtin_converters.obj : error LNK2019: unresolved external symbol __imp__PyByte s_Size referenced in function "public: static class std::basic_string<char,struc t std::char_traits<char>,class std::allocator<char> > __cdecl boost::python::con verter::`anonymous namespace'::string_rvalue_from_python::extract(struct _object *)" (?extract@string_rvalue_from_python@?A0x05677deb@converter@python@boost @@SA ?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAU_object@ @@Z) builtin_converters.obj : error LNK2019: unresolved external symbol __imp__PyLong _AsUnsignedLong referenced in function "public: static unsigned char __cdecl boo st::python::converter::`anonymous namespace'::unsigned_int_rvalue_from_python<un signed char>::extract(struct _object *)" (?extract@ ?$unsigned_int_rvalue_from_py thon@E@?A0x05677deb@converter@python@boost@@SAEPAU_object@@@Z) builtin_converters.obj : error LNK2019: unresolved external symbol __imp__PyUnic odeUCS2_AsUTF8String referenced in function "void __cdecl boost::python::convert er::`anonymous namespace'::`dynamic initializer for 'py_unicode_as_string_unaryf unc''(void)" (??__Epy_unicode_as_string_unaryfunc@?A0x05677deb@converter @python@ boost@@YAXXZ) iterator.obj : error LNK2001: unresolved external symbol __imp__PyExc_StopIterat ion stl_iterator.obj : error LNK2019: unresolved external symbol __imp__PyIter_Next referenced in function "public: void __thiscall boost::python::objects::stl_inpu t_iterator_impl::increment(void)" (?increment@stl_input_iterator_impl @objects@py thon@boost@@QAEXXZ) object_protocol.obj : error LNK2019: unresolved external symbol __imp__PyObject_ GetAttr referenced in function "class boost::python::api::object __cdecl boost:: python::api::getattr(class boost::python::api::object const &,class boost::pytho n::api::object const &)" (?getattr@api@python@boost@@YA?AVobject@123 @ABV4123@0@Z ) object_protocol.obj : error LNK2019: unresolved external symbol __imp__PyErr_Exc eptionMatches referenced in function "class boost::python::api::object __cdecl b oost::python::api::getattr(class boost::python::api::object const &,class boost: :python::api::object const &,class boost::python::api::object const &)" (?getatt r@api@python@boost@@YA?AVobject@123@ABV4123@00@Z) object_protocol.obj : error LNK2019: unresolved external symbol __imp__PyObject_ SetItem referenced in function "void __cdecl boost::python::api::setitem(class b oost::python::api::object const &,class boost::python::api::object const &,class boost::python::api::object const &)" (?setitem@api@python@boost @@YAXABVobject@1 23@00@Z) object_protocol.obj : error LNK2019: unresolved external symbol __imp__PyObject_ DelItem referenced in function "void __cdecl boost::python::api::delitem(class b oost::python::api::object const &,class boost::python::api::object const &)" (?d elitem@api@python@boost@@YAXABVobject@123@0@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyObject _RichCompare referenced in function "class boost::python::api::object __cdecl bo ost::python::api::operator>(class boost::python::api::object const &,class boost ::python::api::object const &)" (??Oapi@python@boost@@YA?AVobject@012 @ABV3012@0@ Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _Add referenced in function "class boost::python::api::object __cdecl boost::pyt hon::api::operator+(class boost::python::api::object const &,class boost::python ::api::object const &)" (??Hapi@python@boost@@YA?AVobject@012@ABV3012@0@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _Subtract referenced in function "class boost::python::api::object __cdecl boost ::python::api::operator-(class boost::python::api::object const &,class boost::p ython::api::object const &)" (??Gapi@python@boost@@YA?AVobject@012@ABV3012@0 @Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _Multiply referenced in function "class boost::python::api::object __cdecl boost ::python::api::operator*(class boost::python::api::object const &,class boost::p ython::api::object const &)" (??Dapi@python@boost@@YA?AVobject@012@ABV3012@0 @Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _FloorDivide referenced in function "class boost::python::api::object __cdecl bo ost::python::api::operator/(class boost::python::api::object const &,class boost ::python::api::object const &)" (??Kapi@python@boost@@YA?AVobject@012 @ABV3012@0@ Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _Remainder referenced in function "class boost::python::api::object __cdecl boos t::python::api::operator%(class boost::python::api::object const &,class boost:: python::api::object const &)" (??Lapi@python@boost@@YA?AVobject@012 @ABV3012@0@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _Lshift referenced in function "class boost::python::api::object __cdecl boost:: python::api::operator<<(class boost::python::api::object const &,class boost::py thon::api::object const &)" (??6api@python@boost@@YA?AVobject@012@ABV3012@0 @Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _Rshift referenced in function "class boost::python::api::object __cdecl boost:: python::api::operator>>(class boost::python::api::object const &,class boost::py thon::api::object const &)" (??5api@python@boost@@YA?AVobject@012@ABV3012@0 @Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _And referenced in function "class boost::python::api::object __cdecl boost::pyt hon::api::operator&(class boost::python::api::object const &,class boost::python ::api::object const &)" (??Iapi@python@boost@@YA?AVobject@012@ABV3012@0@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _Xor referenced in function "class boost::python::api::object __cdecl boost::pyt hon::api::operator^(class boost::python::api::object const &,class boost::python ::api::object const &)" (??Tapi@python@boost@@YA?AVobject@012@ABV3012@0@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _Or referenced in function "class boost::python::api::object __cdecl boost::pyth on::api::operator|(class boost::python::api::object const &,class boost::python: :api::object const &)" (??Uapi@python@boost@@YA?AVobject@012@ABV3012@0@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _InPlaceAdd referenced in function "class boost::python::api::object & __cdecl b oost::python::api::operator+=(class boost::python::api::object &,class boost::py thon::api::object const &)" (??Yapi@python@boost@@YAAAVobject@012 @AAV3012@ABV301 2@@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _InPlaceSubtract referenced in function "class boost::python::api::object & __cd ecl boost::python::api::operator-=(class boost::python::api::object &,class boos t::python::api::object const &)" (??Zapi@python@boost@@YAAAVobject@012 @AAV3012@A BV3012@@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _InPlaceMultiply referenced in function "class boost::python::api::object & __cd ecl boost::python::api::operator*=(class boost::python::api::object &,class boos t::python::api::object const &)" (??Xapi@python@boost@@YAAAVobject@012 @AAV3012@A BV3012@@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _InPlaceFloorDivide referenced in function "class boost::python::api::object & _ _cdecl boost::python::api::operator/=(class boost::python::api::object &,class b oost::python::api::object const &)" (??_0api@python@boost@@YAAAVobject@012 @AAV30 12@ABV3012@@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _InPlaceRemainder referenced in function "class boost::python::api::object & __c decl boost::python::api::operator%=(class boost::python::api::object &,class boo st::python::api::object const &)" (??_1api@python@boost@@YAAAVobject@012 @AAV3012 @ABV3012@@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _InPlaceLshift referenced in function "class boost::python::api::object & __cdec l boost::python::api::operator<<=(class boost::python::api::object &,class boost ::python::api::object const &)" (??_3api@python@boost@@YAAAVobject@012 @AAV3012@A BV3012@@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _InPlaceRshift referenced in function "class boost::python::api::object & __cdec l boost::python::api::operator>>=(class boost::python::api::object &,class boost ::python::api::object const &)" (??_2api@python@boost@@YAAAVobject@012 @AAV3012@A BV3012@@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _InPlaceAnd referenced in function "class boost::python::api::object & __cdecl b oost::python::api::operator&=(class boost::python::api::object &,class boost::py thon::api::object const &)" (??_4api@python@boost@@YAAAVobject@012 @AAV3012@ABV30 12@@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _InPlaceXor referenced in function "class boost::python::api::object & __cdecl b oost::python::api::operator^=(class boost::python::api::object &,class boost::py thon::api::object const &)" (??_6api@python@boost@@YAAAVobject@012 @AAV3012@ABV30 12@@Z) object_operators.obj : error LNK2019: unresolved external symbol __imp__PyNumber _InPlaceOr referenced in function "class boost::python::api::object & __cdecl bo ost::python::api::operator|=(class boost::python::api::object &,class boost::pyt hon::api::object const &)" (??_5api@python@boost@@YAAAVobject@012 @AAV3012@ABV301 2@@Z) wrapper.obj : error LNK2019: unresolved external symbol __imp__PyDict_GetItemStr ing referenced in function "protected: class boost::python::override __thiscall boost::python::detail::wrapper_base::get_override(char const *,struct _typeobjec t *)const " (?get_override@wrapper_base@detail@python@boost@ @IBE?AVoverride@34@P BDPAU_typeobject@@@Z) wrapper.obj : error LNK2001: unresolved external symbol __imp__PyMethod_Type import.obj : error LNK2019: unresolved external symbol __imp__PyImport_ImportMod ule referenced in function "class boost::python::api::object __cdecl boost::pyth on::import(class boost::python::str)" (?import@python@boost@@YA?AVobject@api @12@ Vstr@12@@Z) exec.obj : error LNK2019: unresolved external symbol __imp__PyRun_StringFlags re ferenced in function "class boost::python::api::object __cdecl boost::python::ev al(class boost::python::str,class boost::python::api::object,class boost::python ::api::object)" (?eval@python@boost@@YA?AVobject@api@12@Vstr@12@V3412@1@Z) exec.obj : error LNK2019: unresolved external symbol __imp__PyEval_GetGlobals re ferenced in function "class boost::python::api::object __cdecl boost::python::ev al(class boost::python::str,class boost::python::api::object,class boost::python ::api::object)" (?eval@python@boost@@YA?AVobject@api@12@Vstr@12@V3412@1@Z) exec.obj : error LNK2019: unresolved external symbol __imp__PyRun_FileExFlags re ferenced in function "class boost::python::api::object __cdecl boost::python::ex ec_file(class boost::python::str,class boost::python::api::object,class boost::p ython::api::object)" (?exec_file@python@boost@@YA?AVobject@api@12@Vstr @12@V3412@ 1@Z) D:\Programs\BOOSTS\BoostPython\bin.v2\libs\python\build\msvc-10.0\debug\threadin g-multi\boost_python-vc100-mt-gd-1_46_1.dll : fatal error LNK1120: 130 unresolve d externals call "d:\Applications\MSVC\VC\vcvarsall.bat" x86 >nul link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /MACHINE:X86 /subsystem:console /out:"D :\Programs\BOOSTS\BoostPython\bin.v2\libs\python\build\msvc-10.0\debug\threading -multi\boost_python-vc100-mt-gd-1_46_1.dll" /IMPLIB:"D:\Programs\BOOSTS\BoostPyt hon\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_python-vc100- mt-gd-1_46_1.lib" /LIBPATH:"D:\Applications\Python\libs" @"D:\Programs\BOOSTS\ BoostPython\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boost_pytho n-vc100-mt-gd-1_46_1.dll.rsp" if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL% ...failed msvc.link.dll D:\Programs\BOOSTS\BoostPython\bin.v2\libs\python\build\ msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_46_1.dll D:\Programs\ BOOSTS\BoostPython\bin.v2\libs\python\build\msvc-10.0\debug\threading-multi\boos t_python-vc100-mt-gd-1_46_1.lib D:\Programs\BOOSTS\BoostPython\bin.v2\libs\pytho n\build\msvc-10.0\debug\threading-multi\boost_python-vc100-mt-gd-1_46_1.pdb... ...removing D:\Programs\BOOSTS\BoostPython\bin.v2\libs\python\build\msvc-10.0\de bug\threading-multi\boost_python-vc100-mt-gd-1_46_1.lib ...removing D:\Programs\BOOSTS\BoostPython\bin.v2\libs\python\build\msvc-10.0\de bug\threading-multi\boost_python-vc100-mt-gd-1_46_1.pdb ...skipped <pbin\msvc-10.0\debug\threading-multi>extending.pyd for lack of <pD:\ Programs\BOOSTS\BoostPython\bin.v2\libs\python\build\msvc-10.0\debug\threading-m ulti>boost_python-vc100-mt-gd-1_46_1.lib... ...skipped <pbin\msvc-10.0\debug\threading-multi>extending.lib for lack of <pD:\ Programs\BOOSTS\BoostPython\bin.v2\libs\python\build\msvc-10.0\debug\threading-m ulti>boost_python-vc100-mt-gd-1_46_1.lib... ...skipped <pbin\msvc-10.0\debug\threading-multi>extending.pdb for lack of <pD:\ Programs\BOOSTS\BoostPython\bin.v2\libs\python\build\msvc-10.0\debug\threading-m ulti>boost_python-vc100-mt-gd-1_46_1.lib... ...skipped <pbin\test_ext.test\msvc-10.0\debug\threading-multi>test_ext for lack of <pbin\test_ext.test\msvc-10.0\debug\threading-multi>test_extending.py... common.mkdir bin\test_embed.test common.mkdir bin\test_embed.test\msvc-10.0 common.mkdir bin\test_embed.test\msvc-10.0\debug common.mkdir bin\test_embed.test\msvc-10.0\debug\threading-multi ...skipped <pbin\test_embed.test\msvc-10.0\debug\threading-multi>test_embed.exe for lack of <pD:\Programs\BOOSTS\BoostPython\bin.v2\libs\python\build\msvc-10.0\ debug\threading-multi>boost_python-vc100-mt-gd-1_46_1.lib... ...skipped <pbin\test_embed.test\msvc-10.0\debug\threading-multi>test_embed.pdb for lack of <pD:\Programs\BOOSTS\BoostPython\bin.v2\libs\python\build\msvc-10.0\ debug\threading-multi>boost_python-vc100-mt-gd-1_46_1.lib... ...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\threading-multi>test_embed.exe ... ...failed updating 4 targets... ...skipped 9 targets... ...updated 8 targets...
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig