Re: python , Boost and straight (but complex) C code



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@detail@python@boost@@YAXPBDP6AXXZ@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@detail@python@boost@@YAXPBDABVobject@api@23@0@Z)
referenced in function "void __cdecl boost::python::def<int
(__cdecl*)(float)>(char const *,int (__cdecl*)(float))"
(??$def@P6AHM@Z@python@boost@@YAXPBDP6AHM@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@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<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@P6AHM@ZUdefault_call_policies@python@boost@@U?$vector2@HM@mpl@3@@detail@python@boost@@YA?AVobject@api@12@P6AHM@ZABUdefault_call_policies@12@ABU?$vector2@HM@mpl@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@objects@python@boost@@QAE@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@U?$caller@P6AHM@ZUdefault_call_policies@python@boost@@U?$vector2@HM@mpl@3@@detail@python@boost@@@objects@python@boost@@QAE@ABU?$caller@P6AHM@ZUdefault_call_policies@python@boost@@U?$vector2@HM@mpl@3@@detail@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@py_function_impl_base@objects@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@objects@python@boost@@UAE@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@U?$caller@P6AHM@ZUdefault_call_policies@python@boost@@U?$vector2@HM@mpl@3@@detail@python@boost@@@objects@python@boost@@UAE@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@converter@python@boost@@YA?AUrvalue_from_python_stage1_data@123@PAU_object@@ABUregistration@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@M@converter@python@boost@@QAE@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@registry@converter@python@boost@@YAABUregistration@234@Utype_info@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@detail@converter@python@boost@@YAABUregistration@123@P6AADMXZ@Z)
C:\Documents and Settings\Erik\My Documents\Visual Studio
2005\Projects\C_test\Debug\C_test.dll : fatal error LNK1120: 8
unresolved externals
.



Relevant Pages

  • Re: iostream + iostream.h
    ... it was less work to rewrite the code than I thought but ... When I ignore msvcprtd.lib I get approx 400 linker errors like the ... NumRecCpp.lib: error LNK2019: unresolved external symbol ... The 'ios::nocreate' flag can just be ignored? ...
    (comp.lang.cpp)
  • Adding C functions to COM object
    ... MSRCom error LNK2019: unresolved external symbol _NdrCStdStubBuffer2_Release@8 referenced in function _CStdStubBuffer2_Release@4 ... if Ive commited any errors plz specify that and how to solve this linker errors.. ...
    (microsoft.public.win32.programmer.ole)
  • error LNK2001: unresolved external symbol __CxxFrameHandler3
    ... get the linker errors below. ... 1>libcpmtd.lib: error LNK2001: unresolved external symbol ... symbol __CxxFrameHandler3 ... /OUT:"Windows Mobile 6 Professional SDK \Debug ...
    (microsoft.public.vc.atl)
  • Re: LNK2001 in Verbindung mit DirectShow
    ... Abhängigkeiten des Samples + Google bemüht diemal hatte ich ja nen konkreten ... I get the following linker errors when compiling a directshow filter? ... LNK2001: unresolved external symbol _IID_ISampleGrabber ...
    (microsoft.public.de.vc)
  • Link errors while building VC6 project using VC++ Toolkit 2003
    ... Now I get some strange linker errors, and I don't know much about linker errors :-( ... PropPageAbout.obj: error LNK2001: unresolved external symbol __RTC_CheckEsp ... Error executing link.exe. ... Release/WinCPUID.exe: fatal error LNK1120: 3 unresolved externals ...
    (microsoft.public.dotnet.languages.vc)