[Numpy-discussion] Error in header file - wrong mailing list?
Mads Ipsen
mpi at comxnet.dk
Mon Sep 14 03:08:34 EDT 2009
Pauli Virtanen wrote:
> su, 2009-09-13 kello 01:47 +0300, Pauli Virtanen kirjoitti:
> [clip]
>
>> 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.
>
>
Well, I don't know you consider this as a valid argument, but to me its
a matter of removing a single comma, which will make the source less
sensitive to compilers and compiler flags.
Mads
--
+------------------------------------------------------------+
| Mads Ipsen, Scientific developer |
+------------------------------+-----------------------------+
| QuantumWise A/S | phone: +45-29716388 |
| Nørresøgade 27A | www: www.quantumwise.com |
| DK-1370 Copenhagen, Denmark | email: mpi at quantumwise.com |
+------------------------------+-----------------------------+
More information about the NumPy-Discussion
mailing list