Advertisement
Guest User

linker error? when building with g++

a guest
Apr 6th, 2020
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 35.95 KB | None | 0 0
  1. g++ -I./External_Libraries/pybind11/pybind11/include -I/home/hossein/anaconda3/include/python3.7m -L/home/hossein/anaconda3/lib -L/home/hossein/anaconda3/lib/python3.7/site-packages test_lib.o Core.o -o test_lib
  2. test_lib.o: In function `pybind11::cast_error::set_error() const':
  3. test_lib.cpp:(.text._ZNK8pybind1110cast_error9set_errorEv[_ZNK8pybind1110cast_error9set_errorEv]+0x29): undefined reference to `PyExc_RuntimeError'
  4. test_lib.cpp:(.text._ZNK8pybind1110cast_error9set_errorEv[_ZNK8pybind1110cast_error9set_errorEv]+0x34): undefined reference to `PyErr_SetString'
  5. test_lib.o: In function `pybind11::error_scope::error_scope()':
  6. test_lib.cpp:(.text._ZN8pybind1111error_scopeC2Ev[_ZN8pybind1111error_scopeC5Ev]+0x27): undefined reference to `PyErr_Fetch'
  7. test_lib.o: In function `pybind11::error_scope::~error_scope()':
  8. test_lib.cpp:(.text._ZN8pybind1111error_scopeD2Ev[_ZN8pybind1111error_scopeD5Ev]+0x2a): undefined reference to `PyErr_Restore'
  9. test_lib.o: In function `pybind11::error_already_set::error_already_set()':
  10. test_lib.cpp:(.text._ZN8pybind1117error_already_setC2Ev[_ZN8pybind1117error_already_setC5Ev]+0xc7): undefined reference to `PyErr_Fetch'
  11. test_lib.o: In function `pybind11::error_already_set::restore()':
  12. test_lib.cpp:(.text._ZN8pybind1117error_already_set7restoreEv[_ZN8pybind1117error_already_set7restoreEv]+0x91): undefined reference to `PyErr_Restore'
  13. test_lib.o: In function `pybind11::hasattr(pybind11::handle, char const*)':
  14. test_lib.cpp:(.text._ZN8pybind117hasattrENS_6handleEPKc[_ZN8pybind117hasattrENS_6handleEPKc]+0x2a): undefined reference to `PyObject_HasAttrString'
  15. test_lib.o: In function `pybind11::getattr(pybind11::handle, char const*)':
  16. test_lib.cpp:(.text._ZN8pybind117getattrENS_6handleEPKc[_ZN8pybind117getattrENS_6handleEPKc]+0x40): undefined reference to `PyObject_GetAttrString'
  17. test_lib.o: In function `pybind11::setattr(pybind11::handle, char const*, pybind11::handle)':
  18. test_lib.cpp:(.text._ZN8pybind117setattrENS_6handleEPKcS0_[_ZN8pybind117setattrENS_6handleEPKcS0_]+0x43): undefined reference to `PyObject_SetAttrString'
  19. test_lib.o: In function `pybind11::detail::accessor_policies::generic_item::get(pybind11::handle, pybind11::handle)':
  20. test_lib.cpp:(.text._ZN8pybind116detail17accessor_policies12generic_item3getENS_6handleES3_[_ZN8pybind116detail17accessor_policies12generic_item3getENS_6handleES3_]+0x4b): undefined reference to `PyObject_GetItem'
  21. test_lib.o: In function `pybind11::detail::accessor_policies::generic_item::set(pybind11::handle, pybind11::handle, pybind11::handle)':
  22. test_lib.cpp:(.text._ZN8pybind116detail17accessor_policies12generic_item3setENS_6handleES3_S3_[_ZN8pybind116detail17accessor_policies12generic_item3setENS_6handleES3_S3_]+0x4e): undefined reference to `PyObject_SetItem'
  23. test_lib.o: In function `pybind11::detail::accessor_policies::tuple_item::get(pybind11::handle, unsigned long)':
  24. test_lib.cpp:(.text._ZN8pybind116detail17accessor_policies10tuple_item3getENS_6handleEm[_ZN8pybind116detail17accessor_policies10tuple_item3getENS_6handleEm]+0x40): undefined reference to `PyTuple_GetItem'
  25. test_lib.o: In function `pybind11::detail::accessor_policies::tuple_item::set(pybind11::handle, unsigned long, pybind11::handle)':
  26. test_lib.cpp:(.text._ZN8pybind116detail17accessor_policies10tuple_item3setENS_6handleEmS3_[_ZN8pybind116detail17accessor_policies10tuple_item3setENS_6handleEmS3_]+0x4b): undefined reference to `PyTuple_SetItem'
  27. test_lib.o: In function `pybind11::detail::iterator_policies::dict_readonly::increment()':
  28. test_lib.cpp:(.text._ZN8pybind116detail17iterator_policies13dict_readonly9incrementEv[_ZN8pybind116detail17iterator_policies13dict_readonly9incrementEv]+0x45): undefined reference to `PyDict_Next'
  29. test_lib.o: In function `pybind11::str::str(char const*)':
  30. test_lib.cpp:(.text._ZN8pybind113strC2EPKc[_ZN8pybind113strC5EPKc]+0x2e): undefined reference to `PyUnicode_FromString'
  31. test_lib.o: In function `pybind11::str::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const':
  32. test_lib.cpp:(.text._ZNK8pybind113strcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv[_ZNK8pybind113strcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv]+0x5a): undefined reference to `PyUnicode_AsUTF8String'
  33. test_lib.cpp:(.text._ZNK8pybind113strcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv[_ZNK8pybind113strcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv]+0xdf): undefined reference to `PyBytes_AsStringAndSize'
  34. test_lib.o: In function `pybind11::str::raw_str(_object*)':
  35. test_lib.cpp:(.text._ZN8pybind113str7raw_strEP7_object[_ZN8pybind113str7raw_strEP7_object]+0x14): undefined reference to `PyObject_Str'
  36. test_lib.o: In function `pybind11::none::none()':
  37. test_lib.cpp:(.text._ZN8pybind114noneC2Ev[_ZN8pybind114noneC5Ev]+0x29): undefined reference to `_Py_NoneStruct'
  38. test_lib.o: In function `pybind11::weakref::weakref(pybind11::handle, pybind11::handle)':
  39. test_lib.cpp:(.text._ZN8pybind117weakrefC2ENS_6handleES1_[_ZN8pybind117weakrefC5ENS_6handleES1_]+0x51): undefined reference to `PyWeakref_NewRef'
  40. test_lib.o: In function `pybind11::capsule::check_(pybind11::handle)':
  41. test_lib.cpp:(.text._ZN8pybind117capsule6check_ENS_6handleE[_ZN8pybind117capsule6check_ENS_6handleE]+0x36): undefined reference to `PyCapsule_Type'
  42. test_lib.o: In function `pybind11::capsule::capsule(void const*, char const*, void (*)(_object*))':
  43. test_lib.cpp:(.text._ZN8pybind117capsuleC2EPKvPKcPFvP7_objectE[_ZN8pybind117capsuleC5EPKvPKcPFvP7_objectE]+0x41): undefined reference to `PyCapsule_New'
  44. test_lib.o: In function `pybind11::capsule::capsule(void const*, void (*)(void*))::{lambda(_object*)#1}::operator()(_object*) const':
  45. test_lib.cpp:(.text._ZZN8pybind117capsuleC4EPKvPFvPvEENKUlP7_objectE_clES7_[_ZZN8pybind117capsuleC4EPKvPFvPvEENKUlP7_objectE_clES7_]+0x18): undefined reference to `PyCapsule_GetContext'
  46. test_lib.cpp:(.text._ZZN8pybind117capsuleC4EPKvPFvPvEENKUlP7_objectE_clES7_[_ZZN8pybind117capsuleC4EPKvPFvPvEENKUlP7_objectE_clES7_]+0x2d): undefined reference to `PyCapsule_GetPointer'
  47. test_lib.o: In function `pybind11::capsule::capsule(void const*, void (*)(void*))':
  48. test_lib.cpp:(.text._ZN8pybind117capsuleC2EPKvPFvPvE[_ZN8pybind117capsuleC5EPKvPFvPvE]+0x4c): undefined reference to `PyCapsule_New'
  49. test_lib.cpp:(.text._ZN8pybind117capsuleC2EPKvPFvPvE[_ZN8pybind117capsuleC5EPKvPFvPvE]+0x84): undefined reference to `PyCapsule_SetContext'
  50. test_lib.o: In function `pybind11::capsule::name() const':
  51. test_lib.cpp:(.text._ZNK8pybind117capsule4nameEv[_ZNK8pybind117capsule4nameEv]+0x17): undefined reference to `PyCapsule_GetName'
  52. test_lib.o: In function `pybind11::tuple::tuple(unsigned long)':
  53. test_lib.cpp:(.text._ZN8pybind115tupleC2Em[_ZN8pybind115tupleC5Em]+0x2e): undefined reference to `PyTuple_New'
  54. test_lib.o: In function `pybind11::tuple::size() const':
  55. test_lib.cpp:(.text._ZNK8pybind115tuple4sizeEv[_ZNK8pybind115tuple4sizeEv]+0x17): undefined reference to `PyTuple_Size'
  56. test_lib.o: In function `pybind11::dict::dict()':
  57. test_lib.cpp:(.text._ZN8pybind114dictC2Ev[_ZN8pybind114dictC5Ev]+0x23): undefined reference to `PyDict_New'
  58. test_lib.o: In function `pybind11::dict::size() const':
  59. test_lib.cpp:(.text._ZNK8pybind114dict4sizeEv[_ZNK8pybind114dict4sizeEv]+0x17): undefined reference to `PyDict_Size'
  60. test_lib.o: In function `pybind11::repr(pybind11::handle)':
  61. test_lib.cpp:(.text._ZN8pybind114reprENS_6handleE[_ZN8pybind114reprENS_6handleE]+0x35): undefined reference to `PyObject_Repr'
  62. test_lib.o: In function `pybind11::detail::translate_exception(std::__exception_ptr::exception_ptr)':
  63. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x10e): undefined reference to `PyExc_MemoryError'
  64. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x119): undefined reference to `PyErr_SetString'
  65. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x151): undefined reference to `PyExc_ValueError'
  66. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x15c): undefined reference to `PyErr_SetString'
  67. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x194): undefined reference to `PyExc_ValueError'
  68. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x19f): undefined reference to `PyErr_SetString'
  69. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x1d7): undefined reference to `PyExc_ValueError'
  70. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x1e2): undefined reference to `PyErr_SetString'
  71. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x21a): undefined reference to `PyExc_IndexError'
  72. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x225): undefined reference to `PyErr_SetString'
  73. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x25d): undefined reference to `PyExc_ValueError'
  74. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x268): undefined reference to `PyErr_SetString'
  75. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x2a0): undefined reference to `PyExc_OverflowError'
  76. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x2ab): undefined reference to `PyErr_SetString'
  77. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x2e3): undefined reference to `PyExc_RuntimeError'
  78. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x2ee): undefined reference to `PyErr_SetString'
  79. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x308): undefined reference to `PyExc_RuntimeError'
  80. test_lib.cpp:(.text._ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE[_ZN8pybind116detail19translate_exceptionENSt15__exception_ptr13exception_ptrE]+0x317): undefined reference to `PyErr_SetString'
  81. test_lib.o: In function `pybind11::detail::get_internals()::gil_scoped_acquire_local::gil_scoped_acquire_local()':
  82. test_lib.cpp:(.text._ZZN8pybind116detail13get_internalsEvEN24gil_scoped_acquire_localC2Ev[_ZZN8pybind116detail13get_internalsEvEN24gil_scoped_acquire_localC5Ev]+0xd): undefined reference to `PyGILState_Ensure'
  83. test_lib.o: In function `pybind11::detail::get_internals()::gil_scoped_acquire_local::~gil_scoped_acquire_local()':
  84. test_lib.cpp:(.text._ZZN8pybind116detail13get_internalsEvEN24gil_scoped_acquire_localD2Ev[_ZZN8pybind116detail13get_internalsEvEN24gil_scoped_acquire_localD5Ev]+0x15): undefined reference to `PyGILState_Release'
  85. test_lib.o: In function `pybind11::detail::get_internals()':
  86. test_lib.cpp:(.text._ZN8pybind116detail13get_internalsEv[_ZN8pybind116detail13get_internalsEv]+0x6d): undefined reference to `PyEval_GetBuiltins'
  87. test_lib.cpp:(.text._ZN8pybind116detail13get_internalsEv[_ZN8pybind116detail13get_internalsEv]+0x205): undefined reference to `PyEval_InitThreads'
  88. test_lib.cpp:(.text._ZN8pybind116detail13get_internalsEv[_ZN8pybind116detail13get_internalsEv]+0x20a): undefined reference to `PyThreadState_Get'
  89. test_lib.cpp:(.text._ZN8pybind116detail13get_internalsEv[_ZN8pybind116detail13get_internalsEv]+0x21a): undefined reference to `PyThread_tss_alloc'
  90. test_lib.cpp:(.text._ZN8pybind116detail13get_internalsEv[_ZN8pybind116detail13get_internalsEv]+0x24a): undefined reference to `PyThread_tss_create'
  91. test_lib.cpp:(.text._ZN8pybind116detail13get_internalsEv[_ZN8pybind116detail13get_internalsEv]+0x287): undefined reference to `PyThread_tss_set'
  92. test_lib.o: In function `pybind11::detail::instance::allocate_layout()':
  93. test_lib.cpp:(.text._ZN8pybind116detail8instance15allocate_layoutEv[_ZN8pybind116detail8instance15allocate_layoutEv]+0x175): undefined reference to `PyMem_Calloc'
  94. test_lib.o: In function `pybind11::detail::instance::deallocate_layout()':
  95. test_lib.cpp:(.text._ZN8pybind116detail8instance17deallocate_layoutEv[_ZN8pybind116detail8instance17deallocate_layoutEv]+0x2c): undefined reference to `PyMem_Free'
  96. test_lib.o: In function `pybind11::detail::error_string[abi:cxx11]()':
  97. test_lib.cpp:(.text._ZN8pybind116detail12error_stringB5cxx11Ev[_ZN8pybind116detail12error_stringB5cxx11Ev]+0x23): undefined reference to `PyErr_Occurred'
  98. test_lib.cpp:(.text._ZN8pybind116detail12error_stringB5cxx11Ev[_ZN8pybind116detail12error_stringB5cxx11Ev]+0x34): undefined reference to `PyExc_RuntimeError'
  99. test_lib.cpp:(.text._ZN8pybind116detail12error_stringB5cxx11Ev[_ZN8pybind116detail12error_stringB5cxx11Ev]+0x43): undefined reference to `PyErr_SetString'
  100. test_lib.cpp:(.text._ZN8pybind116detail12error_stringB5cxx11Ev[_ZN8pybind116detail12error_stringB5cxx11Ev]+0x1f4): undefined reference to `PyErr_NormalizeException'
  101. test_lib.cpp:(.text._ZN8pybind116detail12error_stringB5cxx11Ev[_ZN8pybind116detail12error_stringB5cxx11Ev]+0x219): undefined reference to `PyException_SetTraceback'
  102. test_lib.cpp:(.text._ZN8pybind116detail12error_stringB5cxx11Ev[_ZN8pybind116detail12error_stringB5cxx11Ev]+0x2a0): undefined reference to `PyFrame_GetLineNumber'
  103. test_lib.o: In function `pybind11::detail::get_thread_state_unchecked()':
  104. test_lib.cpp:(.text._ZN8pybind116detail26get_thread_state_uncheckedEv[_ZN8pybind116detail26get_thread_state_uncheckedEv]+0x5): undefined reference to `_PyThreadState_UncheckedGet'
  105. test_lib.o: In function `pybind11::detail::type_caster<bool, void>::load(pybind11::handle, bool)':
  106. test_lib.cpp:(.text._ZN8pybind116detail11type_casterIbvE4loadENS_6handleEb[_ZN8pybind116detail11type_casterIbvE4loadENS_6handleEb]+0x54): undefined reference to `_Py_TrueStruct'
  107. test_lib.cpp:(.text._ZN8pybind116detail11type_casterIbvE4loadENS_6handleEb[_ZN8pybind116detail11type_casterIbvE4loadENS_6handleEb]+0x85): undefined reference to `_Py_FalseStruct'
  108. test_lib.cpp:(.text._ZN8pybind116detail11type_casterIbvE4loadENS_6handleEb[_ZN8pybind116detail11type_casterIbvE4loadENS_6handleEb]+0x181): undefined reference to `PyErr_Clear'
  109. test_lib.o: In function `pybind11_static_get':
  110. test_lib.cpp:(.text.pybind11_static_get[pybind11_static_get]+0x17): undefined reference to `PyProperty_Type'
  111. test_lib.o: In function `pybind11_static_set':
  112. test_lib.cpp:(.text.pybind11_static_set[pybind11_static_set]+0x42): undefined reference to `PyProperty_Type'
  113. test_lib.o: In function `pybind11::detail::make_static_property_type()':
  114. test_lib.cpp:(.text._ZN8pybind116detail25make_static_property_typeEv[_ZN8pybind116detail25make_static_property_typeEv]+0x2b): undefined reference to `PyUnicode_FromString'
  115. test_lib.cpp:(.text._ZN8pybind116detail25make_static_property_typeEv[_ZN8pybind116detail25make_static_property_typeEv]+0x57): undefined reference to `PyType_Type'
  116. test_lib.cpp:(.text._ZN8pybind116detail25make_static_property_typeEv[_ZN8pybind116detail25make_static_property_typeEv]+0x63): undefined reference to `PyType_Type'
  117. test_lib.cpp:(.text._ZN8pybind116detail25make_static_property_typeEv[_ZN8pybind116detail25make_static_property_typeEv]+0xde): undefined reference to `PyProperty_Type'
  118. test_lib.cpp:(.text._ZN8pybind116detail25make_static_property_typeEv[_ZN8pybind116detail25make_static_property_typeEv]+0x130): undefined reference to `PyType_Ready'
  119. test_lib.o: In function `pybind11_meta_setattro':
  120. test_lib.cpp:(.text.pybind11_meta_setattro[pybind11_meta_setattro]+0x32): undefined reference to `_PyType_Lookup'
  121. test_lib.cpp:(.text.pybind11_meta_setattro[pybind11_meta_setattro]+0x62): undefined reference to `PyObject_IsInstance'
  122. test_lib.cpp:(.text.pybind11_meta_setattro[pybind11_meta_setattro]+0x79): undefined reference to `PyObject_IsInstance'
  123. test_lib.cpp:(.text.pybind11_meta_setattro[pybind11_meta_setattro]+0xbb): undefined reference to `PyType_Type'
  124. test_lib.o: In function `pybind11_meta_getattro':
  125. test_lib.cpp:(.text.pybind11_meta_getattro[pybind11_meta_getattro]+0x2e): undefined reference to `_PyType_Lookup'
  126. test_lib.cpp:(.text.pybind11_meta_getattro[pybind11_meta_getattro]+0x4a): undefined reference to `PyInstanceMethod_Type'
  127. test_lib.cpp:(.text.pybind11_meta_getattro[pybind11_meta_getattro]+0x6a): undefined reference to `PyType_Type'
  128. test_lib.o: In function `pybind11::detail::make_default_metaclass()':
  129. test_lib.cpp:(.text._ZN8pybind116detail22make_default_metaclassEv[_ZN8pybind116detail22make_default_metaclassEv]+0x2b): undefined reference to `PyUnicode_FromString'
  130. test_lib.cpp:(.text._ZN8pybind116detail22make_default_metaclassEv[_ZN8pybind116detail22make_default_metaclassEv]+0x57): undefined reference to `PyType_Type'
  131. test_lib.cpp:(.text._ZN8pybind116detail22make_default_metaclassEv[_ZN8pybind116detail22make_default_metaclassEv]+0x63): undefined reference to `PyType_Type'
  132. test_lib.cpp:(.text._ZN8pybind116detail22make_default_metaclassEv[_ZN8pybind116detail22make_default_metaclassEv]+0xde): undefined reference to `PyType_Type'
  133. test_lib.cpp:(.text._ZN8pybind116detail22make_default_metaclassEv[_ZN8pybind116detail22make_default_metaclassEv]+0x130): undefined reference to `PyType_Ready'
  134. test_lib.o: In function `pybind11_object_init':
  135. test_lib.cpp:(.text.pybind11_object_init[pybind11_object_init]+0x78): undefined reference to `PyExc_TypeError'
  136. test_lib.cpp:(.text.pybind11_object_init[pybind11_object_init]+0x83): undefined reference to `PyErr_SetString'
  137. test_lib.o: In function `pybind11::detail::clear_instance(_object*)':
  138. test_lib.cpp:(.text._ZN8pybind116detail14clear_instanceEP7_object[_ZN8pybind116detail14clear_instanceEP7_object]+0x1bb): undefined reference to `PyObject_ClearWeakRefs'
  139. test_lib.cpp:(.text._ZN8pybind116detail14clear_instanceEP7_object[_ZN8pybind116detail14clear_instanceEP7_object]+0x1ca): undefined reference to `_PyObject_GetDictPtr'
  140. test_lib.o: In function `pybind11::detail::make_object_base_type(_typeobject*)':
  141. test_lib.cpp:(.text._ZN8pybind116detail21make_object_base_typeEP11_typeobject[_ZN8pybind116detail21make_object_base_typeEP11_typeobject]+0x35): undefined reference to `PyUnicode_FromString'
  142. test_lib.cpp:(.text._ZN8pybind116detail21make_object_base_typeEP11_typeobject[_ZN8pybind116detail21make_object_base_typeEP11_typeobject]+0x108): undefined reference to `PyBaseObject_Type'
  143. test_lib.cpp:(.text._ZN8pybind116detail21make_object_base_typeEP11_typeobject[_ZN8pybind116detail21make_object_base_typeEP11_typeobject]+0x192): undefined reference to `PyType_Ready'
  144. test_lib.o: In function `pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long)':
  145. test_lib.cpp:(.text._ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom[_ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom]+0x3ee): undefined reference to `PyExc_FutureWarning'
  146. test_lib.cpp:(.text._ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom[_ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom]+0x3fe): undefined reference to `PyErr_WarnEx'
  147. test_lib.cpp:(.text._ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom[_ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom]+0xb35): undefined reference to `PyInstanceMethod_Type'
  148. test_lib.cpp:(.text._ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom[_ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom]+0xbdd): undefined reference to `PyCFunction_Type'
  149. test_lib.cpp:(.text._ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom[_ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom]+0xfb4): undefined reference to `PyCFunction_NewEx'
  150. test_lib.cpp:(.text._ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom[_ZN8pybind1112cpp_function18initialize_genericEPNS_6detail15function_recordEPKcPKPKSt9type_infom]+0x1507): undefined reference to `PyInstanceMethod_New'
  151. test_lib.o: In function `pybind11::cpp_function::dispatcher(_object*, _object*, _object*)':
  152. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x42): undefined reference to `PyCapsule_GetPointer'
  153. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x1c1): undefined reference to `PyExc_TypeError'
  154. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x1d0): undefined reference to `PyErr_SetString'
  155. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x51c): undefined reference to `PyDict_GetItemString'
  156. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x700): undefined reference to `PyDict_GetItemString'
  157. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x762): undefined reference to `PyDict_Copy'
  158. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x7e6): undefined reference to `PyDict_DelItemString'
  159. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x1019): undefined reference to `_Py_NotImplementedStruct'
  160. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x17f1): undefined reference to `PyExc_TypeError'
  161. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x17fc): undefined reference to `PyErr_SetString'
  162. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x18bc): undefined reference to `PyExc_TypeError'
  163. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x18c7): undefined reference to `PyErr_SetString'
  164. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x1c1c): undefined reference to `PyExc_SystemError'
  165. test_lib.cpp:(.text._ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_[_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_]+0x1c2b): undefined reference to `PyErr_SetString'
  166. test_lib.o: In function `pybind11::module::import(char const*)':
  167. test_lib.cpp:(.text._ZN8pybind116module6importEPKc[_ZN8pybind116module6importEPKc]+0x2a): undefined reference to `PyImport_ImportModule'
  168. test_lib.o: In function `pybind11::gil_scoped_acquire::gil_scoped_acquire()':
  169. test_lib.cpp:(.text._ZN8pybind1118gil_scoped_acquireC2Ev[_ZN8pybind1118gil_scoped_acquireC5Ev]+0x37): undefined reference to `PyThread_tss_get'
  170. test_lib.cpp:(.text._ZN8pybind1118gil_scoped_acquireC2Ev[_ZN8pybind1118gil_scoped_acquireC5Ev]+0x52): undefined reference to `PyGILState_GetThisThreadState'
  171. test_lib.cpp:(.text._ZN8pybind1118gil_scoped_acquireC2Ev[_ZN8pybind1118gil_scoped_acquireC5Ev]+0x7b): undefined reference to `PyThreadState_New'
  172. test_lib.cpp:(.text._ZN8pybind1118gil_scoped_acquireC2Ev[_ZN8pybind1118gil_scoped_acquireC5Ev]+0xcb): undefined reference to `PyThread_tss_set'
  173. test_lib.cpp:(.text._ZN8pybind1118gil_scoped_acquireC2Ev[_ZN8pybind1118gil_scoped_acquireC5Ev]+0x104): undefined reference to `PyEval_AcquireThread'
  174. test_lib.o: In function `pybind11::gil_scoped_acquire::dec_ref()':
  175. test_lib.cpp:(.text._ZN8pybind1118gil_scoped_acquire7dec_refEv[_ZN8pybind1118gil_scoped_acquire7dec_refEv]+0x9b): undefined reference to `PyThreadState_Clear'
  176. test_lib.cpp:(.text._ZN8pybind1118gil_scoped_acquire7dec_refEv[_ZN8pybind1118gil_scoped_acquire7dec_refEv]+0xa0): undefined reference to `PyThreadState_DeleteCurrent'
  177. test_lib.cpp:(.text._ZN8pybind1118gil_scoped_acquire7dec_refEv[_ZN8pybind1118gil_scoped_acquire7dec_refEv]+0xb9): undefined reference to `PyThread_tss_set'
  178. test_lib.o: In function `pybind11::gil_scoped_acquire::~gil_scoped_acquire()':
  179. test_lib.cpp:(.text._ZN8pybind1118gil_scoped_acquireD2Ev[_ZN8pybind1118gil_scoped_acquireD5Ev]+0x25): undefined reference to `PyEval_SaveThread'
  180. test_lib.o: In function `pybind11::capsule::operator pybind11::detail::internals**<pybind11::detail::internals*>() const':
  181. test_lib.cpp:(.text._ZNK8pybind117capsulecvPT_IPNS_6detail9internalsEEEv[_ZNK8pybind117capsulecvPT_IPNS_6detail9internalsEEEv]+0x2e): undefined reference to `PyCapsule_GetPointer'
  182. test_lib.o: In function `pybind11::detail::object_api<pybind11::handle>::is_none() const':
  183. test_lib.cpp:(.text._ZNK8pybind116detail10object_apiINS_6handleEE7is_noneEv[_ZNK8pybind116detail10object_apiINS_6handleEE7is_noneEv]+0x26): undefined reference to `_Py_NoneStruct'
  184. test_lib.o: In function `pybind11::capsule::operator pybind11::detail::function_record*<pybind11::detail::function_record>() const':
  185. test_lib.cpp:(.text._ZNK8pybind117capsulecvPT_INS_6detail15function_recordEEEv[_ZNK8pybind117capsulecvPT_INS_6detail15function_recordEEEv]+0x2e): undefined reference to `PyCapsule_GetPointer'
  186. test_lib.o: In function `bool pybind11::dict::contains<char const (&) [4]>(char const (&) [4]) const':
  187. test_lib.cpp:(.text._ZNK8pybind114dict8containsIRA4_KcEEbOT_[_ZNK8pybind114dict8containsIRA4_KcEEbOT_]+0x5b): undefined reference to `PyDict_Contains'
  188. test_lib.o: In function `bool pybind11::dict::contains<char const (&) [5]>(char const (&) [5]) const':
  189. test_lib.cpp:(.text._ZNK8pybind114dict8containsIRA5_KcEEbOT_[_ZNK8pybind114dict8containsIRA5_KcEEbOT_]+0x5b): undefined reference to `PyDict_Contains'
  190. test_lib.o: In function `bool pybind11::dict::contains<char const (&) [6]>(char const (&) [6]) const':
  191. test_lib.cpp:(.text._ZNK8pybind114dict8containsIRA6_KcEEbOT_[_ZNK8pybind114dict8containsIRA6_KcEEbOT_]+0x5b): undefined reference to `PyDict_Contains'
  192. test_lib.o: In function `pybind11::detail::simple_collector<(pybind11::return_value_policy)1>::call(_object*) const':
  193. test_lib.cpp:(.text._ZNK8pybind116detail16simple_collectorILNS_19return_value_policyE1EE4callEP7_object[_ZNK8pybind116detail16simple_collectorILNS_19return_value_policyE1EE4callEP7_object]+0x40): undefined reference to `PyObject_CallObject'
  194. test_lib.o: In function `pybind11::detail::string_caster<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, false>::decode_utfN(char const*, long)':
  195. test_lib.cpp:(.text._ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE11decode_utfNEPKcl[_ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE11decode_utfNEPKcl]+0x33): undefined reference to `PyUnicode_DecodeUTF8'
  196. test_lib.o: In function `pybind11::detail::string_caster<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, false>::load(pybind11::handle, bool)':
  197. test_lib.cpp:(.text._ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE4loadENS_6handleEb[_ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE4loadENS_6handleEb]+0xb2): undefined reference to `PyUnicode_AsEncodedString'
  198. test_lib.cpp:(.text._ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE4loadENS_6handleEb[_ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE4loadENS_6handleEb]+0xef): undefined reference to `PyErr_Clear'
  199. test_lib.cpp:(.text._ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE4loadENS_6handleEb[_ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE4loadENS_6handleEb]+0x110): undefined reference to `PyBytes_AsString'
  200. test_lib.cpp:(.text._ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE4loadENS_6handleEb[_ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE4loadENS_6handleEb]+0x12b): undefined reference to `PyBytes_Size'
  201. test_lib.o: In function `bool pybind11::detail::string_caster<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, false>::load_bytes<char>(std::enable_if<std::is_same<char, char>::value, pybind11::handle>::type)':
  202. test_lib.cpp:(.text._ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE10load_bytesIcEEbNSt9enable_ifIXsrSt7is_sameIT_cE5valueENS_6handleEE4typeE[_ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE10load_bytesIcEEbNSt9enable_ifIXsrSt7is_sameIT_cE5valueENS_6handleEE4typeE]+0x60): undefined reference to `PyBytes_AsString'
  203. test_lib.cpp:(.text._ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE10load_bytesIcEEbNSt9enable_ifIXsrSt7is_sameIT_cE5valueENS_6handleEE4typeE[_ZN8pybind116detail13string_casterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0EE10load_bytesIcEEbNSt9enable_ifIXsrSt7is_sameIT_cE5valueENS_6handleEE4typeE]+0x8e): undefined reference to `PyBytes_Size'
  204. Core.o: In function `pybind11::type_error::set_error() const':
  205. Core.cpp:(.text._ZNK8pybind1110type_error9set_errorEv[_ZNK8pybind1110type_error9set_errorEv]+0x29): undefined reference to `PyExc_TypeError'
  206. Core.cpp:(.text._ZNK8pybind1110type_error9set_errorEv[_ZNK8pybind1110type_error9set_errorEv]+0x34): undefined reference to `PyErr_SetString'
  207. Core.o: In function `pybind11::str::str(char const*, unsigned long)':
  208. Core.cpp:(.text._ZN8pybind113strC2EPKcm[_ZN8pybind113strC5EPKcm]+0x39): undefined reference to `PyUnicode_FromStringAndSize'
  209. Core.o: In function `pybind11::tuple::tuple(pybind11::object&&)':
  210. Core.cpp:(.text._ZN8pybind115tupleC2EONS_6objectE[_ZN8pybind115tupleC5EONS_6objectE]+0x6a): undefined reference to `PySequence_Tuple'
  211. Core.o: In function `pybind11::list::list(pybind11::object&&)':
  212. Core.cpp:(.text._ZN8pybind114listC2EONS_6objectE[_ZN8pybind114listC5EONS_6objectE]+0x6a): undefined reference to `PySequence_List'
  213. Core.o: In function `pybind11::list::list(unsigned long)':
  214. Core.cpp:(.text._ZN8pybind114listC2Em[_ZN8pybind114listC5Em]+0x2e): undefined reference to `PyList_New'
  215. Core.o: In function `pybind11::detail::internals::~internals()':
  216. Core.cpp:(.text._ZN8pybind116detail9internalsD2Ev[_ZN8pybind116detail9internalsD5Ev]+0x1b): undefined reference to `PyThread_tss_free'
  217. Core.o: In function `pybind11::detail::type_caster<bool, void>::cast(bool, pybind11::return_value_policy, pybind11::handle)':
  218. Core.cpp:(.text._ZN8pybind116detail11type_casterIbvE4castEbNS_19return_value_policyENS_6handleE[_ZN8pybind116detail11type_casterIbvE4castEbNS_19return_value_policyENS_6handleE]+0x30): undefined reference to `_Py_TrueStruct'
  219. Core.cpp:(.text._ZN8pybind116detail11type_casterIbvE4castEbNS_19return_value_policyENS_6handleE[_ZN8pybind116detail11type_casterIbvE4castEbNS_19return_value_policyENS_6handleE]+0x39): undefined reference to `_Py_FalseStruct'
  220. Core.o: In function `pybind11::initialize_interpreter(bool)':
  221. Core.cpp:(.text._ZN8pybind1122initialize_interpreterEb[_ZN8pybind1122initialize_interpreterEb]+0x1e): undefined reference to `Py_IsInitialized'
  222. Core.cpp:(.text._ZN8pybind1122initialize_interpreterEb[_ZN8pybind1122initialize_interpreterEb]+0x4c): undefined reference to `Py_InitializeEx'
  223. Core.o: In function `pybind11::finalize_interpreter()':
  224. Core.cpp:(.text._ZN8pybind1120finalize_interpreterEv[_ZN8pybind1120finalize_interpreterEv]+0x1d): undefined reference to `PyEval_GetBuiltins'
  225. Core.cpp:(.text._ZN8pybind1120finalize_interpreterEv[_ZN8pybind1120finalize_interpreterEv]+0x157): undefined reference to `Py_Finalize'
  226. Core.o: In function `pybind11::detail::npy_api::PyArray_Check_(_object*) const':
  227. Core.cpp:(.text._ZNK8pybind116detail7npy_api14PyArray_Check_EP7_object[_ZNK8pybind116detail7npy_api14PyArray_Check_EP7_object]+0x3c): undefined reference to `PyType_IsSubtype'
  228. Core.o: In function `pybind11::detail::npy_api::lookup()':
  229. Core.cpp:(.text._ZN8pybind116detail7npy_api6lookupEv[_ZN8pybind116detail7npy_api6lookupEv]+0x5e): undefined reference to `PyCapsule_GetPointer'
  230. Core.o: In function `void pybind11::list::append<char const (&) [2]>(char const (&) [2]) const':
  231. Core.cpp:(.text._ZNK8pybind114list6appendIRA2_KcEEvOT_[_ZNK8pybind114list6appendIRA2_KcEEvOT_]+0x5b): undefined reference to `PyList_Append'
  232. Core.o: In function `pybind11::detail::unpacking_collector<(pybind11::return_value_policy)1>::call(_object*) const':
  233. Core.cpp:(.text._ZNK8pybind116detail19unpacking_collectorILNS_19return_value_policyE1EE4callEP7_object[_ZNK8pybind116detail19unpacking_collectorILNS_19return_value_policyE1EE4callEP7_object]+0x56): undefined reference to `PyObject_Call'
  234. Core.o: In function `bool pybind11::dict::contains<char const*&>(char const*&) const':
  235. Core.cpp:(.text._ZNK8pybind114dict8containsIRPKcEEbOT_[_ZNK8pybind114dict8containsIRPKcEEbOT_]+0x5b): undefined reference to `PyDict_Contains'
  236. Core.o: In function `bool pybind11::dict::contains<pybind11::handle const&>(pybind11::handle const&) const':
  237. Core.cpp:(.text._ZNK8pybind114dict8containsIRKNS_6handleEEEbOT_[_ZNK8pybind114dict8containsIRKNS_6handleEEEbOT_]+0x3d): undefined reference to `PyDict_Contains'
  238. Core.o: In function `std::enable_if<((!std::is_floating_point<int>::value)&&std::is_signed<int>::value)&&((sizeof (int))<=(sizeof (long))), pybind11::handle>::type pybind11::detail::type_caster<int, void>::cast<int>(int, pybind11::return_value_policy, pybind11::handle)':
  239. Core.cpp:(.text._ZN8pybind116detail11type_casterIivE4castIiEENSt9enable_ifIXaaaantsrSt17is_floating_pointIT_E5valuesrSt9is_signedIS6_E5valuelestS6_stlENS_6handleEE4typeES6_NS_19return_value_policyESA_[_ZN8pybind116detail11type_casterIivE4castIiEENSt9enable_ifIXaaaantsrSt17is_floating_pointIT_E5valuesrSt9is_signedIS6_E5valuelestS6_stlENS_6handleEE4typeES6_NS_19return_value_policyESA_]+0x2c): undefined reference to `PyLong_FromSsize_t'
  240. Core.o: In function `pybind11::array_t<unsigned char, 16>::ensure(pybind11::handle)':
  241. Core.cpp:(.text._ZN8pybind117array_tIhLi16EE6ensureENS_6handleE[_ZN8pybind117array_tIhLi16EE6ensureENS_6handleE]+0x70): undefined reference to `PyErr_Clear'
  242. Core.o: In function `pybind11::array_t<unsigned char, 16>::raw_array_t(_object*)':
  243. Core.cpp:(.text._ZN8pybind117array_tIhLi16EE11raw_array_tEP7_object[_ZN8pybind117array_tIhLi16EE11raw_array_tEP7_object]+0x26): undefined reference to `PyExc_ValueError'
  244. Core.cpp:(.text._ZN8pybind117array_tIhLi16EE11raw_array_tEP7_object[_ZN8pybind117array_tIhLi16EE11raw_array_tEP7_object]+0x35): undefined reference to `PyErr_SetString'
  245. collect2: error: ld returned 1 exit status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement