Greetings, I have read and followed the boost.python build documentations thoroughly. Upon attempting to build the example project in boost_1_67_0\libs\python\example\tutorial, I'm facing these compile issues.
Configuration: boost version: 1.67 and 1.68 build system: boost build and MS Visual Studio 12 python version: 3.6 64-bit wondering if someone can generously take a look and guide to as to what could be going wrong? C:/Users/ialkeilani/Desktop/Temp/boostWithBins/boost_1_67_0/libs/predef/check/../tools/check\predef.jam:46: Unescaped special character in argument $(language)::$(expression) Performing configuration checks - default address-model : 32-bit (cached) - default architecture : x86 (cached) ...patience... ...found 1043 targets... ...updating 2 targets... msvc.link.dll hello_ext.pyd Creating library hello_ext.lib and object hello_ext.exp hello.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct _object * __cdecl boost::python::detail::init_module(struct PyModuleDef &,void (__cdecl*)(void))" (__imp_?init_module@detail@python@boost@@YAPAU_object@ @AAUPyModuleDef@@P6AXXZ@Z) referenced in function _PyInit_hello_ext hello.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct boost::python::converter::registration const * __cdecl boost::python::converter::registry::query(struct boost::python::type_info)" (__imp_?query@registry@converter@python@boost@ @YAPBUregistration@234@Utype_info@34@@Z) referenced in function "public: static struct _typeobject const * __cdecl boost::python::converter::expected_pytype_for_arg<char const *>::get_pytype(void)" (?get_pytype@?$expected_pytype_for_arg@PBD @converter@python@boost@@SAPBU_typeobject@@XZ) hello.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct _typeobject const * __thiscall boost::python::converter::registration::expected_from_python_type(void)const " (__imp_?expected_from_python_type@registration@converter@python@boost@ @QBEPBU_typeobject@@XZ) referenced in function "public: static struct _typeobject const * __cdecl boost::python::converter::expected_pytype_for_arg<char const *>::get_pytype(void)" (?get_pytype@?$expected_pytype_for_arg@PBD @converter@python@boost@@SAPBU_typeobject@@XZ) hello.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct _object * __cdecl boost::python::converter::do_return_to_python(char const *)" (__imp_?do_return_to_python@converter@python@boost@@YAPAU_object@@PBD@Z) referenced in function "public: struct _object * __thiscall boost::python::to_python_value<char const * const &>::operator()(char const * const &)const " (??R?$to_python_value@ABQBD@python@boost@@QBEPAU_object@ @ABQBD@Z) hello.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall boost::python::objects::py_function_impl_base::~py_function_impl_base(void)" (__imp_??1py_function_impl_base@objects@python@boost@@UAE@XZ) referenced in function "public: virtual __thiscall boost::python::objects::caller_py_function_impl<struct boost::python::detail::caller<char const * (__cdecl*)(void),struct boost::python::default_call_policies,struct boost::mpl::vector1<char const *> > >::~caller_py_function_impl<struct boost::python::detail::caller<char const * (__cdecl*)(void),struct boost::python::default_call_policies,struct boost::mpl::vector1<char const *> > >(void)" (??1?$caller_py_function_impl@U ?$caller@P6APBDXZUdefault_call_policies@python@boost@@U?$vector1@PBD@mpl@3 @@detail@python@boost@@@objects@python@boost@@UAE@XZ) hello.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::python::objects::py_function_impl_base::py_function_impl_base(void)" (__imp_??0py_function_impl_base@objects@python@boost@@QAE@XZ) referenced in function "public: __thiscall boost::python::objects::caller_py_function_impl<struct boost::python::detail::caller<char const * (__cdecl*)(void),struct boost::python::default_call_policies,struct boost::mpl::vector1<char const *> > >::caller_py_function_impl<struct boost::python::detail::caller<char const * (__cdecl*)(void),struct boost::python::default_call_policies,struct boost::mpl::vector1<char const *> > >(struct boost::python::detail::caller<char const * (__cdecl*)(void),struct boost::python::default_call_policies,struct boost::mpl::vector1<char const *> > const &)" (??0?$caller_py_function_impl@U ?$caller@P6APBDXZUdefault_call_policies@python@boost@@U?$vector1@PBD@mpl@3 @@detail@python@boost@@@objects@python@boost@@QAE@ABU ?$caller@P6APBDXZUdefault_call_policies@python@boost@@U?$vector1@PBD@mpl@3 @@detail@23@@Z) hello.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class boost::python::api::object __cdecl boost::python::objects::function_object(struct boost::python::objects::py_function const &)" (__imp_?function_object@objects@python@boost@@YA?AVobject@api @23@ABUpy_function@123@@Z) referenced in function "class boost::python::api::object __cdecl boost::python::detail::make_function_aux<char const * (__cdecl*)(void),struct boost::python::default_call_policies,struct boost::mpl::vector1<char const *> >(char const * (__cdecl*)(void),struct boost::python::default_call_policies const &,struct boost::mpl::vector1<char const *> const &)" (??$make_function_aux@P6APBDXZUdefault_call_policies@python@boost @@U?$vector1@PBD@mpl@3@@detail@python@boost@@YA?AVobject@api @12@P6APBDXZABUdefault_call_policies@12@ABU?$vector1@PBD@mpl@2@@Z) hello.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl boost::python::detail::scope_setattr_doc(char const *,class boost::python::api::object const &,char const *)" (__imp_?scope_setattr_doc@detail@python@boost@@YAXPBDABVobject@api@23@0@Z) referenced in function "void __cdecl boost::python::def<char const * (__cdecl*)(void)>(char const *,char const * (__cdecl*)(void))" (??$def@P6APBDXZ@python@boost@@YAXPBDP6APBDXZ@Z) hello.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall boost::python::objects::py_function_impl_base::max_arity(void)const " (?max_arity@py_function_impl_base@objects@python@boost@@UBEIXZ) hello.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct hello.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_Type MSVCRTD.lib(atonexit.obj) : error LNK2019: unresolved external symbol __imp__EncodePointer@4 referenced in function ___atonexitinit MSVCRTD.lib(atonexit.obj) : error LNK2019: unresolved external symbol __imp__DecodePointer@4 referenced in function __onexit MSVCRTD.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp__IsDebuggerPresent@0 referenced in function ___raise_securityfailure MSVCRTD.lib(gs_report.obj) : error LNK2019: unresolved external symbol _IsProcessorFeaturePresent@4 referenced in function ___report_gsfailure hello_ext.pyd : fatal error LNK1120: 15 unresolved externals call "..\bin.v2\standalone\msvc\msvc-12.0\msvc-setup.bat" x86 >nul link /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /DEBUG /MACHINE:X86 /MANIFEST /subsystem:console /out:"hello_ext.pyd" /LIBPATH:"C:\Users\ialkeilani\AppData\Local\Continuum\anaconda3\libs" @"hello_ext.pyd.rsp" if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL% ...failed msvc.link.dll hello_ext.pyd hello_ext.pdb... ...removing hello_ext.pdb ...failed updating 2 targets... -- ~Ibrahim
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org https://mail.python.org/mailman/listinfo/cplusplus-sig