[SciPy-User] ‘NPY_DOUBLE’ undeclared
Tue Oct 18 06:16:58 CDT 2011
On Tue, Oct 18, 2011 at 12:12, Hjalmar Turesson <firstname.lastname@example.org> wrote:
> When attempting to compile C extensions, I get the following type of errors:
> error: ‘NPY_DOUBLE’ undeclared(first use in this function)
> error: ‘NPY_LONG’ undeclared (first use in this function)
> error: ‘NPY_UINT32’ undeclared (first use in this function)
> It seems I've forgot to include some header defining NPY_*, but both
> "Python.h" and "Numeric/arrayobject.h" are included. And the compiler
> doesn't complain about not finding these headers.
It's not "Numeric/arrayobject.h". It's "numpy/arrayobject.h"
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the SciPy-User