[gdal-dev] GEOS suppor on win32 with MinGW

Javier Urien javierurien+gdal at gmail.com
Sun Mar 16 12:19:50 EDT 2008


Hello everyone,


  Has anyone had success compiling GEOS suppor in GDAL using MinGW?

  I am using GDAL v1.5.0 and GEOS 3.0.0 and I get an error when
configure is checking for GEOSVersion in -lgeos_c. Looking at
config.log I get this output:

configure:25817: checking for GEOS version >= 2.2.0
configure:25840: result: yes
configure:25872: checking for GEOSversion in -lgeos_c
configure:25908: gcc -o conftest.exe -I/usr/local/include   conftest.c -lgeos_c
       -L/usr/local/lib -lgeos_c >&5
c:/msys/1.0/local/lib/libgeos_c.a(libgeos_c_la-geos_c.o):geos_c.cpp:(.text+0xd):
undefined reference to `std::string::size() const'
c:/msys/1.0/local/lib/libgeos_c.a(libgeos_c_la-geos_c.o):geos_c.cpp:(.text+0x60):
undefined reference to `std::string::operator[](unsigned int) const'
c:/msys/1.0/local/lib/libgeos_c.a(libgeos_c_la-geos_c.o):geos_c.cpp:(.text+0x9e):
undefined reference to `std::string::operator[](unsigned int) const'
c:/msys/1.0/local/lib/libgeos_c.a(libgeos_c_la-geos_c.o):geos_c.cpp:(.text+0xcc):
undefined reference to `std::string::operator[](unsigned int) const'

  This least me to belive that geos_c is c++ and thus is not linking
correctly. Is this GDAL's fault? or GEOS? or mine?

  I will try using the latest GEOS 2.2.x and get back, but if someone
has an answer please do let me know

Regards


More information about the gdal-dev mailing list