Cython3 losed define DLIMPROT in xx.h file

7 views
Skip to the first unread message

Bingo

unread,
26 Jan 2016, 03:26:2726/01/2016
to cython-users
When I run "cython3 xxx.pyx",generate xxx.h, xx.c

I had met same problem mentioned in https://groups.google.com/forum/#!topic/cython-users/DQ2thclt3yI

I found if we added
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif

in xx.c originally 
then, we could compile successfully!

But I think it's inconvenient. Could I solve this problem without adding those statement after I had ran cython3?

Any answer will be appreciate.  

Thanks.
Reply all
Reply to author
Forward
0 new messages