If compiling a SWIG wrapper with MinGW 3.2.3 (Windows) get the following compilation error:
pyprog_wrap.cxx: In function `int SWIG_Python_ConvertFunctionPtr(PyObject*, void**, swig_type_info*)': pyprog_wrap.cxx:2051: invalid conversion from `const char*' to `char*' Extract from wrapper: /* Convert a function ptr value */ SWIGRUNTIME int SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { if (!PyCFunction_Check(obj)) { return SWIG_ConvertPtr(obj, ptr, ty, 0); } else { void *vptr = 0; /* here we get the method pointer for callbacks */ char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); <-- error occurs here. This must be caused by a change in Python.h, as there were no problems with Python 2.3 or 2.4. SWIG version 1.3.29. Used -c++ and -shadow options. Can anyone reproduce this? Andrew. -- http://mail.python.org/mailman/listinfo/python-list