[gdal-dev] GEOS suppor on win32 with MinGW

Ari Jolma ari.jolma at tkk.fi
Sun Mar 16 16:24:05 EDT 2008


Javier Urien kirjoitti:
> 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?
>   

 From my config.log:

configure:25701: checking for geos-config
configure:25719: found /usr/local/bin/geos-config
configure:25732: result: /usr/local/bin/geos-config
configure:25832: checking for GEOS version >= 2.2.0
configure:25855: result: yes
configure:25887: checking for GEOSversion in -lgeos_c
configure:25923: gcc -o conftest.exe -I/usr/local/include   conftest.c 
-lgeos_c
       -L/usr/local/lib -lgeos_c >&5
configure:25929: $? = 0
configure:25947: result: yes
configure:25966: Using C API from GEOS 3.0.0rc4

My gcc is 3.4.5

"std::string::size() const" in your errors seems rather basic, maybe 
your gcc is not finding all standard libraries?

Ari

 
>   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
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>   


-- 
Prof. Ari Jolma
Geoinformatiikka / Geoinformatics
Teknillinen Korkeakoulu / Helsinki University of Technology
tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma




More information about the gdal-dev mailing list