[geos-devel] trying to compile on MinGW
Sanak
geosanak at gmail.com
Sat Jun 27 09:04:58 EDT 2009
Hi Allegri,
I encountered the same problem today.
(I am using gcc-3.4.5, referring to
http://trac.osgeo.org/postgis/wiki/UsersWikiWinCompile)
The cause seems to be the latest MinGW bug, and Mark has already report
MinGW tracker.
[Latest MingW download breaks g++ -ansi option - ID: 2373234]
http://sourceforge.net/tracker/index.php?func=detail&aid=2373234&group_id=2435&atid=102435
I had modified "cwchar" file referring to the following site,
and I could "make" geos-3.0.4 successfully with the latest MinGW.
[g++ compilation error within vim]
http://www.nabble.com/g%2B%2B-compilation-error-within-vim-td22764394.html
Regards,
Sanak.
2009/3/19 G. Allegri <giohappy at gmail.com>
> 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
>
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20090627/21197fe1/attachment.html
More information about the geos-devel
mailing list