Re: Fwd: [Numpy-discussion] Numpy does not compile with PY_ARRAY_TYPES_PREFIX
by Travis Oliphant other posts by this author
Jan 27 2006 4:27PM messages near this date
Re: Fwd: [Numpy-discussion] Numpy does not compile with PY_ARRAY_TYPES_PREFIX
|
Re: Fwd: [Numpy-discussion] Numpy does not compile with PY_ARRAY_TYPES_PREFIX
Sasha wrote:
> On 1/27/06, David M. Cooke <cookedm@[...].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
Attachments:
test.c
unknown1
Thread:
Sasha
Sasha
Sasha
Travis Oliphant
Travis Oliphant
Sasha
Andrew Straw
Sasha
Alexander Belopolsky
|