ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> numpy-discussion
numpy-discussion
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:34PM 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
Travis Oliphant wrote:

>  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.

On my system, it didn't seem to matter.  All incarnations worked.  
Perhaps there is something wrong with your installation.   Could you 
show the very first errors you are getting.  Is the wrong header being 
picked up from somewhere.

Also perhaps you could look at the output of the compilation using the 
-E (pre-processor only) flag.  This might help nail down the problem.

-Travis



-------------------------------------------------------
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=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved