Sign in to follow this  
glBender

Boost.Python linker errors

Recommended Posts

After spending a few hours playing with the interface between python and c(++), i decided their must be an easier way. So I downloaded boost and i'm trying to get it to work... all that remains are a few linker errors. i'm baffled, my google abilities have failed me :(. any ideas or solutions welcomed, and as always, thanks in advance
   Creating library C:\Documents and Settings\Owner\Desktop\BLIB\pytst\Debug\spam.lib and object C:\Documents and Settings\Owner\Desktop\BLIB\pytst\Debug\spam.exp
pytst.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl boost::python::detail::init_module(char const *,void (__cdecl*)(void))" (__imp_?init_module@detail@python@boost@@YAXPBDP6AXXZ@Z) referenced in function _inithello
pytst.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)
pytst.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)
pytst.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)
pytst.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)
pytst.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)
pytst.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)
C:\Documents and Settings\Owner\Desktop\BLIB\pytst\Debug\spam.dll : fatal error LNK1120: 7 unresolved externals

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this