C++ Python module import error: “undefined symbol: Py_InitModule3” ( Py_InitModule () )
问题 I am just starting an attempt to write my first Python extension module in C and are using instructions provided at https://www.tutorialspoint.com/python/python_further_extensions.htm I am on Linux Mint 18.1, using Python 3.6.1 in its virtualenv version. As first step I have compiled a very minimalistic version of the Python module I plan to write. Here my C-code: include <Python.h> static PyObject* uniqueCombinations(PyObject* self) { return Py_BuildValue("s", "uniqueCombinations() return