Comment 1 for bug 434142

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

this seems to be a problem with including png.h after setjmp.h in the code 'swigged' from pygpiv.i. Python.h is included first, and it includes setjmp.h, whereas including gpiv.h then draws in png.h, causing the error.

#include <Python.h> //includes setjmp.h
#include <gpiv.h> //includes png.h

Reversing the order of the includes 'solves' the problem. or including png.h before python.
essentially, you are not allowed to include png.h if setjmp.h has already been included, this is by design apparently