[geos-devel] trying to compile on MinGW

G. Allegri giohappy at gmail.com
Wed Mar 18 11:40:27 EDT 2009


Hello list,
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.
make aborts with the following traceback:

 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
In file included from
C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/postypes.h:46,
                 from
C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iosfwd:50,
                 from
C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:70,
                 from
C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/vector:67,
                 from ../../source/headers/geos/algorithm/CGAlgorithms.h:24,
                 from CGAlgorithms.cpp:21:
C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cwchar:161:
error: `::swprintf' has not been declared
C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cwchar:168:
error: `::vswprintf' has not been declared
make[2]: *** [CGAlgorithms.lo] Error 1
make[2]: Leaving directory `/usr/local/src/geos-3.0.0/source/algorithm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/geos-3.0.0/source'
make: *** [all-recursive] Error 1

I don't know how to solve the "error: `::swprintf' has not been declared"
error. Any idea? What could cause it?
Thanks,
Giovanni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20090318/618d0df7/attachment.html


More information about the geos-devel mailing list