I'm looking to port a python project to z/OS.
I'm compiling it in Unix Services using V2.4 z/OS XL C
and I'm getting compile errors
ERROR CCN3221 /u/tmp/python/usr/lpp/IBM/cyp/v3r10/pyz/include/python3.10/cpython/abstract.h:201 Initializer must be a valid constant expression.
ERROR CCN3221 /u/tmp/python/usr/lpp/IBM/cyp/v3r10/pyz/include/python3.10/cpython/abstract.h:201 Initializer must be a valid constant expression.
static inline PyObject *
PyObject_CallMethodOneArg(PyObject *self, PyObject *name, PyObject *arg)
{
PyObject *args[2] = {self, arg};
...
If I use
PyObject *args[2] ;
args[0] = self;
args[1] = arg ;
__________
Also the compiler does not like the "inline" - but I can #define this to blank.
Are there some special compiler options I need to use?
Colin Paice
------------------------------
Colin Paice
------------------------------