On Jul 28, 2006, at 4:47 PM, David M. Cooke wrote:
> On Fri, 28 Jul 2006 16:25:00 -0400
> Nick Fotopoulos <nv...@MI...> wrote:
>
>> Dear all,
>>
>> I had a working C extension, but after upgrading to a recent numpy
>> from SVN, I can no longer compile it. I've fixed the deprecation
>> warnings, but can't get past this:
>>
>> frgetvect.c:51: error: 'intp' undeclared (first use in this function)
>>
>> Now, I'm quite confused since I thought that intp should be a global
>> thing, not numpy related, and I believe I'm using the shipped Apple
>> gcc version.
>
> To avoid namespace clashes with other libraries, we've switched to
> adding a
> unique prefix 'npy_' to types (and NPY_ to #defines). You can
> either change
> your code to use 'npy_intp', or add
>
> #include "numpy/noprefix.h"
>
> to the top.
>
Aha! I was under the impression that intp was a native C thing.
Thanks for clarifying.
Take care,
Nick
|