[Cython] cimport does not respect .H include order

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Nov 22 01:19:39 CET 2008


Stephane DROUARD wrote:
> This is because in the latter, Cython generates the #include's in the wrong order:
> #include "bar.h"
> #include "foo.h"

Cython/Pyrex has no way of knowing what the internal dependencies
are between .h files. If one .h file depends on another, it should
#include it itself (with appropriate protection against multiple
inclusion).

-- 
Greg


More information about the Cython-dev mailing list