Fwd: [Numpy-discussion] Numpy does not compile with PY_ARRAY_TYPES_PREFIX

Travis Oliphant oliphant at ee.byu.edu
Fri Jan 27 16:27:04 CST 2006


Sasha wrote:

>On 1/27/06, David M. Cooke <cookedm at physics.mcmaster.ca> wrote:
>  
>
>>You need to add #include "Python.h" as the first include (and add a
>>-I<python include directory> to your gcc line, of course).
>>    
>>
>
>Still does not work
>  
>
It works for me.   Try the attached file.

gcc -I /usr/include/python2.4 -I 
/usr/lib/python2.4/site-packages/numpy/core/include -c test.c

Worked fine.

Maybe Python.h has to come *before* the special #define.

-Travis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 85 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060127/566926d9/attachment.bin 


More information about the Numpy-discussion mailing list