|
|
 |
numpy-discussion
Re: Fwd: [Numpy-discussion] Numpy does not compile with PY_ARRAY_TYPES_PREFIX
by Sasha other posts by this author
Jan 27 2006 1:33PM messages near this date
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
On 1/27/06, Travis Oliphant <oliphant@[...].edu> wrote:
> Show an example of using it in a file before you include the numpy
> header. Because that *should* work. I know, I just tested it a few
> days ago...
I've tried to put just two lines in "test.c":
#define PY_ARRAY_TYPES_PREFIX XYZ_
#include <numpy/arrayobject.h>
and compile it with
$ gcc -I$NUMPYINCLUDE -c test.c
Where NUMPYINCLUDE points to the location of numpy/arrayobject.h
I get the following errors:
In file included from test.c:2:
numpy-0.9.4/lib/python2.3/site-packages/numpy/core/include/numpy/arrayobject.h:699:
error: syntax error before " XYZ_intp"
numpy-0.9.4/lib/python2.3/site-packages/numpy/core/include/numpy/arrayobject.h:699:
warning: data definition has no type or storage class
numpy-0.9.4/lib/python2.3/site-packages/numpy/core/include/numpy/arrayobject.h:700:
error: syntax error before " XYZ_uintp"
... <many screenfulls more> ...
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Sasha
Sasha
Sasha
Travis Oliphant
Travis Oliphant
Sasha
Andrew Straw
Sasha
Alexander Belopolsky
|
|
|
 |
|