Hi Allegri,<br><br>I encountered the same problem today.<br>(I am using gcc-3.4.5, referring to <a href="http://trac.osgeo.org/postgis/wiki/UsersWikiWinCompile">http://trac.osgeo.org/postgis/wiki/UsersWikiWinCompile</a>)<br>
<br>The cause seems to be the latest MinGW bug, and Mark has already report MinGW tracker.<br><br>[Latest MingW download breaks g++ -ansi option - ID: 2373234]<br><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=2373234&group_id=2435&atid=102435">http://sourceforge.net/tracker/index.php?func=detail&aid=2373234&group_id=2435&atid=102435</a><br>
<br><br>I had modified "cwchar" file referring to the following site,<br>and I could "make" geos-3.0.4 successfully with the latest MinGW.<br><br>[g++ compilation error within vim]<br><a href="http://www.nabble.com/g%2B%2B-compilation-error-within-vim-td22764394.html">http://www.nabble.com/g%2B%2B-compilation-error-within-vim-td22764394.html</a><br>
<br>Regards,<br><br>Sanak.<br><br><div class="gmail_quote">2009/3/19 G. Allegri <span dir="ltr"><<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello list,<br>this is my very first post. I'm trying to build GEOS 3.0.0 with MSYS 1.0.11 + MinGW 5.1.4 environment and Windows Vista SP1.<br>make aborts with the following traceback:<br><br> g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers -I../../source/headers/geos -I../../source/headers -g -O2 -DGEOS_INLINE -Wall -ansi -pedantic -Wno-long-long -MT CGAlgorithms.lo -MD -MP -MF .deps/CGAlgorithms.Tpo -c CGAlgorithms.cpp -DDLL_EXPORT -DPIC -o .libs/CGAlgorithms.o<br>
In file included from C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/postypes.h:46,<br> from C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iosfwd:50,<br>
from C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:70,<br> from C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/vector:67,<br>
from ../../source/headers/geos/algorithm/CGAlgorithms.h:24,<br> from CGAlgorithms.cpp:21:<br>C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cwchar:161: error: `::swprintf' has not been declared<br>
C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cwchar:168: error: `::vswprintf' has not been declared<br>make[2]: *** [CGAlgorithms.lo] Error 1<br>make[2]: Leaving directory `/usr/local/src/geos-3.0.0/source/algorithm'<br>
make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/usr/local/src/geos-3.0.0/source'<br>make: *** [all-recursive] Error 1<br><br>I don't know how to solve the "error: `::swprintf' has not been declared" error. Any idea? What could cause it?<br>
Thanks,<br>Giovanni<br><br>
<br>_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br></blockquote></div><br>