[Numpy-discussion] NumPy C-API now has prefixes

Stefan van der Walt stefan at sun.ac.za
Fri Jul 7 20:22:50 CDT 2006


On Fri, Jul 07, 2006 at 07:06:58PM -0600, Fernando Perez wrote:
> On 7/7/06, Travis Oliphant <oliphant at ee.byu.edu> wrote:
> > I just committed a big change to the NumPy SVN (r2773-r2777) which adds
> > the prefix npy_ or NPY_ to all names not otherwise pre-fixed.
> >
> > There is also a noprefix.h  header that allows you to use the names
> > without the prefixes defined, as before
> >
> > Plus:
> >
> > 1) The special FLAG names with _FLAGS  now have the _FLAGS removed
> > 2) The PY_ARRAY_TYPES_PREFIX is ignored.
> > 3) The tMIN/tMAX macros are removed
> > 4) MAX_DIMS --> NPY_MAXDIMS
> > 5) OWN_DATA --> NPY_OWNDATA
> 
> Make sure scipy builds after these, I think I just saw it not build
> with 'OWN_DATA' errors.  Maybe I just caught you in-between
commits...

I see the following before the compilation breaks:

Lib/cluster/src/vq_wrap.cpp: In function ‘PyObject* ARGOUT_argout(char*, char*, int*, int)’:
Lib/cluster/src/vq_wrap.cpp:734: error: ‘OWN_DATA’ was not declared in this scope
Lib/cluster/src/vq_wrap.cpp: In function ‘int char_to_size(char)’:
Lib/cluster/src/vq_wrap.cpp:582: warning: control reaches end of non-void function
Lib/cluster/src/vq_wrap.cpp: In function ‘int char_to_numtype(char)’:
Lib/cluster/src/vq_wrap.cpp:590: warning: control reaches end of non-void function
Lib/cluster/src/vq_wrap.cpp: At global scope:
Lib/cluster/src/vq_wrap.cpp:147: warning: ‘void* SWIG_TypeQuery(const char*)’ defined but not used
Lib/cluster/src/vq_wrap.cpp:301: warning: ‘void SWIG_addvarlink(PyObject*, char*, PyObject* (*)(), int (*)(PyObject*))’ defined but not used
Lib/cluster/src/vq_wrap.cpp:315: warning: ‘int SWIG_ConvertPtr(PyObject*, void**, swig_type_info*, int)’ defined but not used
Lib/cluster/src/vq_wrap.cpp:516: warning: ‘PyObject* l_output_helper(PyObject*, PyObject*)’ defined but not used
In file included from /usr/include/python2.4/Python.h:8,
                 from Lib/cluster/src/vq_wrap.cpp:176:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
                 from Lib/cluster/src/vq_wrap.cpp:27:
/usr/include/features.h:150:1: warning: this is the location of the previous definition
In file included from Lib/cluster/src/vq_wrap.cpp:499:
Lib/cluster/src/vq.h:57:7: warning: no newline at end of file
Lib/cluster/src/vq_wrap.cpp: In function ‘PyObject* ARGOUT_argout(char*, char*, int*, int)’:
Lib/cluster/src/vq_wrap.cpp:734: error: ‘OWN_DATA’ was not declared in this scope
Lib/cluster/src/vq_wrap.cpp: In function ‘int char_to_size(char)’:
Lib/cluster/src/vq_wrap.cpp:582: warning: control reaches end of non-void function
Lib/cluster/src/vq_wrap.cpp: In function ‘int char_to_numtype(char)’:
Lib/cluster/src/vq_wrap.cpp:590: warning: control reaches end of non-void function
Lib/cluster/src/vq_wrap.cpp: At global scope:
Lib/cluster/src/vq_wrap.cpp:147: warning: ‘void* SWIG_TypeQuery(const char*)’ defined but not used
Lib/cluster/src/vq_wrap.cpp:301: warning: ‘void SWIG_addvarlink(PyObject*, char*, PyObject* (*)(), int (*)(PyObject*))’ defined but not used
Lib/cluster/src/vq_wrap.cpp:315: warning: ‘int SWIG_ConvertPtr(PyObject*, void**, swig_type_info*, int)’ defined but not used
Lib/cluster/src/vq_wrap.cpp:516: warning: ‘PyObject* l_output_helper(PyObject*, PyObject*)’ defined but not used
error: Command "g++ -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -fPIC -I/home/stefan/lib/python2.4/site-packages/numpy/core/include -I/usr/include/python2.4 -c Lib/cluster/src/vq_wrap.cpp -o build/temp.linux-i686-2.4/Lib/cluster/src/vq_wrap.o" failed with exit status 1
Error building package.


Stéfan




More information about the Numpy-discussion mailing list