python , Boost and straight (but complex) C code

Osiris nono at hotmail.com
Sat Dec 30 08:11:54 EST 2006


I get, from Visual C++, these linker errors, 8 in total, trying to
build the above C++ source:

C_test.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) void __cdecl
boost::python::detail::init_module(char const *,void
(__cdecl*)(void))"
(__imp_?init_module at detail@python at boost@@YAXPBDP6AXXZ at Z) referenced in
function _inithalf

C_test.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 at detail@python at boost@@YAXPBDABVobject at api@23 at 0@Z)
referenced in function "void __cdecl boost::python::def<int
(__cdecl*)(float)>(char const *,int (__cdecl*)(float))"
(??$def at P6AHM@Z at python@boost@@YAXPBDP6AHM at Z@Z)

C_test.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 at objects@python at boost@@YA?AVobject at api@23 at ABUpy_function@123@@Z)
referenced in function "class boost::python::api::object __cdecl
boost::python::detail::make_function_aux<int (__cdecl*)(float),struct
boost::python::default_call_policies,struct
boost::mpl::vector2<int,float> >(int (__cdecl*)(float),struct
boost::python::default_call_policies const &,struct
boost::mpl::vector2<int,float> const &)"
(??$make_function_aux at P6AHM@ZUdefault_call_policies at python@boost@@U?$vector2 at HM@mpl at 3@@detail at python@boost@@YA?AVobject at api@12 at P6AHM@ZABUdefault_call_policies at 12@ABU?$vector2 at HM@mpl at 2@@Z)
C_test.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 at objects@python at boost@@QAE at XZ)
referenced in function "public: __thiscall
boost::python::objects::caller_py_function_impl<struct
boost::python::detail::caller<int (__cdecl*)(float),struct
boost::python::default_call_policies,struct
boost::mpl::vector2<int,float> > >::caller_py_function_impl<struct
boost::python::detail::caller<int (__cdecl*)(float),struct
boost::python::default_call_policies,struct
boost::mpl::vector2<int,float> > >(struct
boost::python::detail::caller<int (__cdecl*)(float),struct
boost::python::default_call_policies,struct
boost::mpl::vector2<int,float> > const &)"
(??0?$caller_py_function_impl at U?$caller at P6AHM@ZUdefault_call_policies at python@boost@@U?$vector2 at HM@mpl at 3@@detail at python@boost@@@objects at python@boost@@QAE at ABU?$caller at P6AHM@ZUdefault_call_policies at python@boost@@U?$vector2 at HM@mpl at 3@@detail at 23@@Z)
C_test.obj : error LNK2001: unresolved external symbol "public:
virtual unsigned int __thiscall
boost::python::objects::py_function_impl_base::max_arity(void)const "
(?max_arity at py_function_impl_base@objects at python@boost@@UBEIXZ)
C_test.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 at objects@python at boost@@UAE at XZ)
referenced in function "public: virtual __thiscall
boost::python::objects::caller_py_function_impl<struct
boost::python::detail::caller<int (__cdecl*)(float),struct
boost::python::default_call_policies,struct
boost::mpl::vector2<int,float> > >::~caller_py_function_impl<struct
boost::python::detail::caller<int (__cdecl*)(float),struct
boost::python::default_call_policies,struct
boost::mpl::vector2<int,float> > >(void)"
(??1?$caller_py_function_impl at U?$caller at P6AHM@ZUdefault_call_policies at python@boost@@U?$vector2 at HM@mpl at 3@@detail at python@boost@@@objects at python@boost@@UAE at XZ)
C_test.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) struct
boost::python::converter::rvalue_from_python_stage1_data __cdecl
boost::python::converter::rvalue_from_python_stage1(struct _object
*,struct boost::python::converter::registration const &)"
(__imp_?rvalue_from_python_stage1 at converter@python at boost@@YA?AUrvalue_from_python_stage1_data at 123@PAU_object@@ABUregistration at 123@@Z)
referenced in function "public: __thiscall
boost::python::converter::arg_rvalue_from_python<float>::arg_rvalue_from_python<float>(struct
_object *)"
(??0?$arg_rvalue_from_python at M@converter at python@boost@@QAE at PAU_object@@@Z)
C_test.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) struct boost::python::converter::registration
const & __cdecl boost::python::converter::registry::lookup(struct
boost::python::type_info)"
(__imp_?lookup at registry@converter at python@boost@@YAABUregistration at 234@Utype_info at 34@@Z)
referenced in function "struct boost::python::converter::registration
const & __cdecl
boost::python::converter::detail::registry_lookup<float const volatile
>(float const volatile & (__cdecl*)(void))"
(??$registry_lookup@$$CDM at detail@converter at python@boost@@YAABUregistration at 123@P6AADMXZ at Z)
C:\Documents and Settings\Erik\My Documents\Visual Studio
2005\Projects\C_test\Debug\C_test.dll : fatal error LNK1120: 8
unresolved externals



More information about the Python-list mailing list