[Numpy-discussion] Easy way to get NumPy code to compile

Travis Oliphant oliphant at ee.byu.edu
Fri Jul 7 20:58:51 CDT 2006

If you have been a user of NumPy.  The easy way to update your code so 
that it compiles even with the latest changes to the naming-scheme is to 

#include "numpy/arrayobject.h"


#include "numpy/noprefix.h"

This will generate the prefix-less names (and the other _FLAGS and 
OWN_DATA names that your code may depend on).   It also includes 
arrayobject.h and so there is no need to do that twice.

This should help people who already have code that works with NumPy. 


More information about the Numpy-discussion mailing list