Joel, > Do you have control of the CFLAGS that are passed to the compiler (presumably > gcc) which compiles the cython generated code? If so, you can use the -D > switch to define the __LINUX identifier.
Yes. Just to clarify, I've been able to compile by setting this flag and simply typing opentick.pyx ----------------- cdef extern "OTClient.h": ctypedef struct c_OTClient "OTClient": pass cdef class Opentick: pass opentick.pxd ----------------- cdef class Opentick: pass This works just fine. (Robert Bradshaw confirmed this.) However, the moment I create an instance of the c_OTClient class: opentick.pxd ----------------- cdef class Opentick: cdef c_OTClient *otclient I get this compile error even when passing "-D __LINUX" to the cython compiler (#define __LINUX). Methinks this a problem with the fact that this #define DLL_EXP thing is floating around there, even though it's an empty definition. I'm wondering if I have to write out the entire wrapping in order for this to work...hrm. -- Chris --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---