boost python异常处理_这个boost.python程序有什么错误?

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o:Infunction_start':

(.text+0x20): undefined reference to `main'/tmp/ccg2v42f.o:Infunction`inithello_ext':

hello_world.cpp:(.text+0x1a): undefined reference to `boost::python::detail::init_module(charconst*,void(*)())'

/tmp/ccg2v42f.o: In function `boost::python::type_info::name() const':hello_world.cpp:(.text._ZNK5boost6python9type_info4nameEv[_ZNK5boost6python9type_info4nameEv]+0x1f):undefinedreference to`boost::python::detail::gcc_demangle(char const*)'

/tmp/ccg2v42f.o: In function `boost::python::to_python_value::operator()(charconst*const&)const':

hello_world.cpp:(.text._ZNK5boost6python15to_python_valueIRKPKcEclES5_[_ZNK5boost6python15to_python_valueIRKPKcEclES5_]+0x1b): undefined reference to `boost::python::converter::do_return_to_python(char const*)'/tmp/ccg2v42f.o:Infunction`boost::python::to_python_value::get_pytype() const':

hello_world.cpp:(.text._ZNK5boost6python15to_python_valueIRKPKcE10get_pytypeEv[_ZNK5boost6python15to_python_valueIRKPKcE10get_pytypeEv]+0x9): undefined reference to `PyString_Type'

/tmp/ccg2v42f.o: In function `boost::python::api::object::object()':hello_world.cpp:(.text._ZN5boost6python3api6objectC2Ev[_ZN5boost6python3api6objectC5Ev]+0xd):undefinedreference to`_Py_NoneStruct'

/tmp/ccg2v42f.o: In function `voidboost::python::def(charconst*,charconst*(*)())':

hello_world.cpp:(.text._ZN5boost6python3defIPFPKcvEEEvS3_T_[_ZN5boost6python3defIPFPKcvEEEvS3_T_]+0x50): undefined reference to `boost::python::detail::scope_setattr_doc(char const*, boost::python::api::object const&, char const*)'/tmp/ccg2v42f.o:Infunction`boost::python::api::object boost::python::detail::make_function_aux >(char const* (*)(), boost::python::default_call_policies const&, boost::mpl::vector1 const&)':

hello_world.cpp:(.text._ZN5boost6python6detail17make_function_auxIPFPKcvENS0_21default_call_policiesENS_3mpl7vector1IS4_EEEENS0_3api6objectET_RKT0_RKT1_[_ZN5boost6python6detail17make_function_auxIPFPKcvENS0_21default_call_policiesENS_3mpl7vector1IS4_EEEENS0_3api6objectET_RKT0_RKT1_]+0x67): undefined reference to `boost::python::objects::function_object(boost::python::objects::py_functionconst&)'

/tmp/ccg2v42f.o: In function `boost::python::objects::py_function_impl_base::py_function_impl_base()':hello_world.cpp:(.text._ZN5boost6python7objects21py_function_impl_baseC2Ev[_ZN5boost6python7objects21py_function_impl_baseC5Ev]+0x9):undefinedreference to`vtable for boost::python::objects::py_function_impl_base'

/tmp/ccg2v42f.o:(.rodata._ZTVN5boost6python7objects23caller_py_function_implINS0_6detail6callerIPFPKcvENS0_21default_call_policiesENS_3mpl7vector1IS6_EEEEEE[_ZTVN5boost6python7objects23caller_py_function_implINS0_6detail6callerIPFPKcvENS0_21default_call_policiesENS_3mpl7vector1IS6_EEEEEE]+0x30): undefined reference to `boost::python::objects::py_function_impl_base::max_arity()const'

/tmp/ccg2v42f.o: In function `boost::python::objects::caller_py_function_impl<:python::detail::caller const boost::python::default_call_policies boost::mpl::vector1> > >::~caller_py_function_impl()':hello_world.cpp:(.text._ZN5boost6python7objects23caller_py_function_implINS0_6detail6callerIPFPKcvENS0_21default_call_policiesENS_3mpl7vector1IS6_EEEEED2Ev[_ZN5boost6python7objects23caller_py_function_implINS0_6detail6callerIPFPKcvENS0_21default_call_policiesENS_3mpl7vector1IS6_EEEEED5Ev]+0x20):undefinedreference to`boost::python::objects::py_function_impl_base::~py_function_impl_base()'

/tmp/ccg2v42f.o:(.rodata._ZTIN5boost6python7objects23caller_py_function_implINS0_6detail6callerIPFPKcvENS0_21default_call_policiesENS_3mpl7vector1IS6_EEEEEE[_ZTIN5boost6python7objects23caller_py_function_implINS0_6detail6callerIPFPKcvENS0_21default_call_policiesENS_3mpl7vector1IS6_EEEEEE]+0x10): undefined reference to `typeinfoforboost::python::objects::py_function_impl_base'

/tmp/ccg2v42f.o: In function `boost::python::converter::expected_pytype_for_arg::get_pytype()':hello_world.cpp:(.text._ZN5boost6python9converter23expected_pytype_for_argIPKcE10get_pytypeEv[_ZN5boost6python9converter23expected_pytype_for_argIPKcE10get_pytypeEv]+0x1b):undefinedreference to`boost::python::converter::registry::query(boost::python::type_info)'

hello_world.cpp:(.text._ZN5boost6python9converter23expected_pytype_for_argIPKcE10get_pytypeEv[_ZN5boost6python9converter23expected_pytype_for_argIPKcE10get_pytypeEv]+0x32): undefined reference to `boost::python::converter::registration::expected_from_python_type()const'

collect2: error: ld returned 1 exit status

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
undefined symbol: _ZN5ECore9instancesEv 是一个未定义的符号。根据引用的报错信息,这个未定义的符号出现在 libORB_SLAM3.so 中。在这个报错信息中,_ZN5ECore9instancesEv 是一个符号的名称,该符号未被正确定义或链接。这可能是由于在编译或链接过程中缺少相关的库文件或定义引起的。 请检查您的编译和链接过程,确保所有的依赖库文件被正确链接。您可能需要检查相关的库文件是否存在、是否正确安装,并确保正确设置相关的环境变量。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [undefined symbol问题的查找、定位与解决方法](https://blog.csdn.net/buknow/article/details/96130049)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [Debug报错:libORB_SLAM3.so: undefined symbol: _ZN5DBoW24FORB1LE](https://blog.csdn.net/qq_41035283/article/details/128301376)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值