Thanks Mateusz. Strk - could you apply this fix to Geos 2.2.2? Charlie Mateusz Łoskot wrote: Charlie Savage wrote:The Geos 2.2.2 XmlTester doesn't compile on MinGW.Offending code is in indexSweepline.h, line 62. class indexSweepLineEvent { public: enum { INSERT = 1, DELETE <------- Breaks }; The error: In file included from ../..//source/headers/geos/opValid.h:67, from XMLTester.cpp:41: ../..//source/headers/geos/indexSweepline.h:62: error: expected identifier before numeric constant Not sure if this is important, but thought I'd bring it up. I'm using g++ 3.4.5 on Windows XP under MingW.Yup, this is known bug. It has been fixed in GEOS CVS. The problem is with DELETE enumerator name. DELETE is used by Windows Platform SDK headers - winnt.h - where it is defined as: #define DELETE (0x00010000L) This is problem with macro evil, so it was fixed about month ago: SweepLineEvent.cpp Revision 1.8 2006/03/02 14:53:40 strk SweepLineEvent::DELETE=>DELETE_EVENT, INSERT=>INSERT_EVENT (#45) NOTE: I'd suggest to rename it in GEOS 2.2.0 too as a backport fix. Cheers |
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ geos-devel mailing list geos-devel@geos.refractions.net http://geos.refractions.net/mailman/listinfo/geos-devel