[Mapserver-dev] GDAL/OGR static build requirement on win32 removed

Frank Warmerdam warmerdam at pobox.com
Mon May 10 20:53:10 EDT 2004


For those who have been building MapServer on win32 with OGR support enabled
I have made some changes in 4.3.  Previously it was necessary to link in the
static OGR libraries on win32 due to use of some static arrays in class
methods that were being inlined (related to styles).  I have moved all
the method code down into .cpp files in OGR and out of the include files.
So now the static variables are no longer accessed in client side code
and it is sufficient to link against gdal_i.lib (the DLL stub library).

The change in MapServer is removing the static libraries from the OGR_LIBS
variable in the default nmake.opt file.  Anyone wanting to use the latest
MapServer from CVS should either grab the latest GDAL from CVS (ie. the
snapshot that will be made later tonight), or else use the older OGR_LIBS
value in nmake.opt.

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 mapserver-dev mailing list