[Numpy-discussion] Error in header file - wrong mailing list?

Pauli Virtanen pav@iki...
Sat Sep 12 17:55:46 CDT 2009

su, 2009-09-13 kello 01:47 +0300, Pauli Virtanen kirjoitti:
> The error you get from the comma at the end of the enum must be because
> you have
> 	-pedantic -Werror
> in your CFLAGS. Just
> 	unset CFLAGS
> or so before compilation. Yes, comma at the end of enum list is not
> strictly valid C89, although it is valid C99 and already passes for most
> compilers.

Another possibility is that these flags come
from /usr/lib/pythonX.Y/config/Makefile -- in that case it's maybe
possible to override one of the the BASECFLAGS etc. variables with
environment vars.

Also, I see that

	OPT="-std=c89 -pedantic -Werror" python setup.py

won't succeed in current SVN, because apparently the configuration
detection code is not strict C89.

Pauli Virtanen

More information about the NumPy-Discussion mailing list