Message360103
The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword
For example, in warnings.h, we have the following code:
#ifndef Py_LIMITED_API
PyAPI_FUNC(int) PyErr_WarnExplicitObject(
PyObject *category,
PyObject *message,
PyObject *filename,
int lineno,
PyObject *module,
PyObject *registry);
In modsupport.h we have the following code:
PyAPI_FUNC(int) PyModule_ExecDef(PyObject *module, PyModuleDef *def);
We can fix this by using a different identifier, for example “pyModule” instead of “module” |
|
Date |
User |
Action |
Args |
2020-01-16 09:25:21 | aCuria | set | recipients:
+ aCuria |
2020-01-16 09:25:21 | aCuria | set | messageid: <1579166721.74.0.203064876936.issue39355@roundup.psfhosted.org> |
2020-01-16 09:25:21 | aCuria | link | issue39355 messages |
2020-01-16 09:25:21 | aCuria | create | |
|