Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. root@localhost:~# gcc test.c -o test -I/usr/include/python3.6m
  2. /tmp/ccMvwOBf.o: In function `__Pyx_PyObject_GetAttrStr':
  3. test.c:(.text+0x61): undefined reference to `PyObject_GetAttr'
  4. /tmp/ccMvwOBf.o: In function `PyInit_test':
  5. test.c:(.text+0x108): undefined reference to `PyTuple_New'
  6. test.c:(.text+0x15c): undefined reference to `PyBytes_FromStringAndSize'
  7. test.c:(.text+0x1b0): undefined reference to `PyUnicode_FromStringAndSize'
  8. test.c:(.text+0x204): undefined reference to `PyModule_Create2'
  9. test.c:(.text+0x256): undefined reference to `PyModule_GetDict'
  10. test.c:(.text+0x2b6): undefined reference to `PyImport_AddModule'
  11. test.c:(.text+0x305): undefined reference to `PyImport_AddModule'
  12. test.c:(.text+0x365): undefined reference to `PyObject_SetAttrString'
  13. test.c:(.text+0x3e7): undefined reference to `PyObject_SetAttrString'
  14. test.c:(.text+0x417): undefined reference to `PyImport_GetModuleDict'
  15. test.c:(.text+0x465): undefined reference to `PyDict_GetItemString'
  16. test.c:(.text+0x484): undefined reference to `PyDict_SetItemString'
  17. test.c:(.text+0x55a): undefined reference to `PyDict_New'
  18. test.c:(.text+0x5b2): undefined reference to `PyDict_SetItem'
  19. test.c:(.text+0x6f7): undefined reference to `PyErr_Occurred'
  20. test.c:(.text+0x703): undefined reference to `PyExc_ImportError'
  21. test.c:(.text+0x712): undefined reference to `PyErr_SetString'
  22. /tmp/ccMvwOBf.o: In function `__Pyx_CLineForTraceback':
  23. test.c:(.text+0x747): undefined reference to `_PyObject_GetDictPtr'
  24. test.c:(.text+0x774): undefined reference to `PyDict_GetItem'
  25. test.c:(.text+0x794): undefined reference to `PyErr_Fetch'
  26. test.c:(.text+0x7c4): undefined reference to `PyObject_Not'
  27. test.c:(.text+0x7cf): undefined reference to `_Py_FalseStruct'
  28. test.c:(.text+0x7d8): undefined reference to `_Py_TrueStruct'
  29. test.c:(.text+0x838): undefined reference to `PyErr_Restore'
  30. test.c:(.text+0x85b): undefined reference to `_Py_FalseStruct'
  31. test.c:(.text+0x866): undefined reference to `PyObject_SetAttr'
  32. test.c:(.text+0x874): undefined reference to `PyObject_Not'
  33. /tmp/ccMvwOBf.o: In function `__pyx_insert_code_object':
  34. test.c:(.text+0xa91): undefined reference to `PyMem_Malloc'
  35. test.c:(.text+0xbf7): undefined reference to `PyMem_Realloc'
  36. /tmp/ccMvwOBf.o: In function `__Pyx_CreateCodeObjectForTraceback':
  37. test.c:(.text+0xd0c): undefined reference to `PyUnicode_FromString'
  38. test.c:(.text+0xd43): undefined reference to `PyUnicode_FromFormat'
  39. test.c:(.text+0xd55): undefined reference to `PyUnicode_FromString'
  40. test.c:(.text+0xdcb): undefined reference to `PyCode_New'
  41. /tmp/ccMvwOBf.o: In function `__Pyx_AddTraceback':
  42. test.c:(.text+0xf98): undefined reference to `PyThreadState_Get'
  43. test.c:(.text+0xfaf): undefined reference to `PyFrame_New'
  44. test.c:(.text+0xfd0): undefined reference to `PyTraceBack_Here'
  45. /tmp/ccMvwOBf.o: In function `__Pyx_main':
  46. test.c:(.text+0x109d): undefined reference to `Py_SetProgramName'
  47. test.c:(.text+0x10a2): undefined reference to `Py_Initialize'
  48. test.c:(.text+0x10c0): undefined reference to `PySys_SetArgv'
  49. test.c:(.text+0x10e0): undefined reference to `PyErr_Occurred'
  50. test.c:(.text+0x10ea): undefined reference to `PyErr_Print'
  51. test.c:(.text+0x1140): undefined reference to `Py_Finalize'
  52. /tmp/ccMvwOBf.o: In function `__Pyx_Print':
  53. test.c:(.text+0x1649): undefined reference to `PyObject_GetAttr'
  54. test.c:(.text+0x1676): undefined reference to `PyDict_New'
  55. test.c:(.text+0x16ae): undefined reference to `PyDict_SetItem'
  56. test.c:(.text+0x16d8): undefined reference to `PyUnicode_FromStringAndSize'
  57. test.c:(.text+0x170a): undefined reference to `PyDict_SetItem'
  58. test.c:(.text+0x17be): undefined reference to `PyDict_New'
  59. test.c:(.text+0x17f5): undefined reference to `PyUnicode_FromStringAndSize'
  60. test.c:(.text+0x1830): undefined reference to `PyDict_SetItem'
  61. test.c:(.text+0x18d9): undefined reference to `PyObject_Call'
  62. /tmp/ccMvwOBf.o: In function `__Pyx_PrintOne':
  63. test.c:(.text+0x1a13): undefined reference to `PyTuple_Pack'
  64. /tmp/ccMvwOBf.o: In function `__Pyx_check_binary_version':
  65. test.c:(.text+0x1ace): undefined reference to `PyOS_snprintf'
  66. test.c:(.text+0x1ad3): undefined reference to `Py_GetVersion'
  67. test.c:(.text+0x1af9): undefined reference to `PyOS_snprintf'
  68. test.c:(.text+0x1b58): undefined reference to `PyOS_snprintf'
  69. test.c:(.text+0x1b71): undefined reference to `PyErr_WarnEx'
  70. /tmp/ccMvwOBf.o: In function `__Pyx_InitStrings':
  71. test.c:(.text+0x1bdd): undefined reference to `PyUnicode_InternFromString'
  72. test.c:(.text+0x1c22): undefined reference to `PyUnicode_Decode'
  73. test.c:(.text+0x1c4d): undefined reference to `PyUnicode_FromStringAndSize'
  74. test.c:(.text+0x1c78): undefined reference to `PyBytes_FromStringAndSize'
  75. test.c:(.text+0x1ca3): undefined reference to `PyObject_Hash'
  76. test.c:(.text+0x1cae): undefined reference to `PyErr_Clear'
  77. collect2: error: ld returned 1 exit status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement