[Numpy-discussion] error: comma at end of enumerator list
Mads Ipsen
mpi at comxnet.dk
Thu Sep 10 03:17:00 EDT 2009
Hey,
When I try to compile a swig based interface to NumPy, I get the error:
lib/python2.6/site-packages/numpy/core/include/numpy/npy_common.h:11:
error: comma at end of enumerator list
In npy_common.h, changing
/* enums for detected endianness */
enum {
NPY_CPU_UNKNOWN_ENDIAN,
NPY_CPU_LITTLE,
NPY_CPU_BIG,
};
to
/* enums for detected endianness */
enum {
NPY_CPU_UNKNOWN_ENDIAN,
NPY_CPU_LITTLE,
NPY_CPU_BIG
};
fixes the issue. I believe this should be fixed. At least we cannot
built our software without the above fix.
System info:
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)
Ubuntu 8.10
Best regards,
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