Re: opaque types, constructors, assignment - help please
Péter Szabó <[email protected]> Thu, 25 Feb 2010 20:47:48 +0100
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
Hi,
> cdef extern from "../src/capi.h":
> =A0 =A0ctypedef extern struct FastBitQueryHandle
Try this instead:
cdef extern from "../src/capi.h":
struct FastBitQueryHandle:
pass
Or this:
cdef extern from "../src/capi.h":
struct FastBitQueryHandle_struct "FastBitQueryHandle":
pass
ctypedef FastBitQueryHandle_struct FastBitQueryHandle
To better understand what happens, diff the .c files generated by the
various methods.
Best regards,
P=E9ter