[gdal-dev] Re: Link GDAL with MinGW

Frank Warmerdam warmerdam at pobox.com
Thu Feb 26 12:29:39 EST 2009

LF wrote:
> First of all, thanks to your fast answers.
> Then, I report following my makefile.
> GDAL_ROOT="C:\gdalwin32-1.6_bin\"
> LD_SHARED=g++ -shared
> OBJ=hdf5dataset.o hdf5imagedataset.o


I get the impression you are trying to build the HDF5 plugin with MinGW
for use with a GDAL built with MSVC.  Plugins use the C++ API and are
generally not going to be compatible between compilers.  At this time
I believe you just have to use a similar compiler to build plugins as
was used to build the core GDAL library.

The offer to improve MinGW/MSVC mixing only applies to the GDAL/OGR C API
(not the C++ API) and is mainly aimed at making it possible to build
applications against the GDAL/OGR C API using MinGW when GDAL is built with

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list