![](https://secure.gravatar.com/avatar/8b69f4e97ce35b8ef791c861d75328eb.jpg?s=120&d=mm&r=g)
Dear people, When trying to compile a C extension to Numeric 23.0 the compiler complains (with a syntax error) about a semicolon in line 284 of arrayobject.h. When I remove this semicolon my application seems to run. System: Windows 2000 Visual C++ 6.0 Numeric 23.0 Python 2.2.1 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
![](https://secure.gravatar.com/avatar/a53ea657e812241a1162060860f698c4.jpg?s=120&d=mm&r=g)
On Monday 17 March 2003 16:05, christiaan.kok@philips.com wrote:
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@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 -------------------------------------------------------------------------------
![](https://secure.gravatar.com/avatar/a53ea657e812241a1162060860f698c4.jpg?s=120&d=mm&r=g)
On Monday 17 March 2003 16:05, christiaan.kok@philips.com wrote:
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@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 -------------------------------------------------------------------------------
participants (2)
-
christiaan.kok@philips.com
-
Konrad Hinsen