<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>

<font size="2">Hi,
<br />
<br />geos sets the -ansi switch, and MinGW support
<br />for strict ANSI mode seems to be somehow
<br />broken.
<br />Anyway, I was able to solve this issue while 
<br />building geos for SpatiaLite acting as follows:
<br />
<br />
<br />a) go to the MinGW C++ include dir
<br />On my Windows XP this one actually is:
<br />
<br />C:\MinGW\include\c++\3.4.5
<br />
<br />
<br />
<br />b) edit the 'cwchar' file as follows:
<br />
<br />161c161
<br />&lt;   using ::swprintf;
<br />---
<br />&gt;   //using ::swprintf;
<br />168c168
<br />&lt;   using ::vswprintf;
<br />---
<br />&gt;   //using ::vswprintf;
<br />
<br />
<br />c) after this simple change geos will build
<br />   with no problem at all (I hope ...)
<br />
<br />bye
<br />Sandro
<br />
</font>
</BODY>
</HTML>