CS causes compiler error on solaris in cluster hierarchy

When I try and compile scipy svn HEAD on solaris for python2.4 using gcc 3.4.3, I get the following compiler error. Apparently CS is reserved as a numeric constant: scipy/cluster/src/hierarchy.c:1082: error: subscripted value is neither array nor pointer scipy/cluster/src/hierarchy.c:1082: error: subscripted value is neither array nor pointer scipy/cluster/src/hierarchy.c:1086: error: subscripted value is neither array nor pointer scipy/cluster/src/hierarchy.c:1091: error: subscripted value is neither array nor pointer scipy/cluster/src/hierarchy.c:1091: error: subscripted value is neither array nor pointer scipy/cluster/src/hierarchy.c:1095: error: subscripted value is neither array nor pointer scipy/cluster/src/hierarchy.c: At top level: The attached patch (replace CS by CS_) allows scipy to compile on this platform johnh@udesktop191:scipy> gcc --version gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. johnh@udesktop191:scipy> python -V Python 2.4.5 johnh@udesktop191:scipy> uname -a SunOS udesktop191 5.10 Generic_137138-09 i86pc i386 i86pc

Hi John, John Hunter wrote:
When I try and compile scipy svn HEAD on solaris for python2.4 using gcc 3.4.3, I get the following compiler error. Apparently CS is reserved as a numeric constant:
Thanks for the report - I changes the CS in the C code in scipy.cluster, tell me if you still see problems, cheers, David
participants (2)
-
David Cournapeau
-
John Hunter