[SciPy-User] ‘NPY_DOUBLE’ undeclared

Hjalmar Turesson hturesson@gmail....
Tue Oct 18 06:26:07 CDT 2011


Thanks for the super-speedy reply.
Worked (and horribly obvious in retrospect).

Hjalmar



On Tue, Oct 18, 2011 at 7:16 AM, Robert Kern <robert.kern@gmail.com> wrote:

> On Tue, Oct 18, 2011 at 12:12, Hjalmar Turesson <hturesson@gmail.com>
> wrote:
> > Hi,
> > 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"
>
> --
> Robert Kern
>
> "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
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20111018/81e785cf/attachment.html 


More information about the SciPy-User mailing list