[Numpy-discussion] typo in arrayobject.h?

Konrad Hinsen hinsen at cnrs-orleans.fr
Mon Mar 17 09:20:54 EST 2003


On Monday 17 March 2003 16:05, christiaan.kok at philips.com wrote:

> Is this a typo or do I do something strange?
>
> with best regards,
>
> Christiaan Kok
>
> /* C API address pointer */
> #if defined(NO_IMPORT) || defined(NO_IMPORT_ARRAY)
> extern void **PyArray_API;
> #else
> #if defined(PY_ARRAY_UNIQUE_SYMBOL)
> void **PyArray_API      /* <---------------------------  semicolon here
> removed! */ #else
> static void **PyArray_API;
> #endif
> #endif

There should be a semicolon there according to my understanding of C syntax!

Check the C extension which you are compiling. It very probably defines
PY_ARRAY_UNIQUE_SYMBOL to something before including arrayobject.h. I suspect 
that there is something wrong with that definition.

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                            | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais
-------------------------------------------------------------------------------





More information about the NumPy-Discussion mailing list