[SciPy-User] ‘NPY_DOUBLE’ undeclared

Hjalmar Turesson hturesson at gmail.com
Tue Oct 18 07:26:07 EDT 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 at gmail.com> wrote:

> On Tue, Oct 18, 2011 at 12:12, Hjalmar Turesson <hturesson at 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 at 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