[gdal-dev] GDAL/OGR 2.4.1 is released
Greg Troxel
gdt at lexort.com
Fri Mar 22 08:32:04 PDT 2019
Even Rouault <even.rouault at spatialys.com> writes:
> could you try instead applying the following patch (on top of unmodified
> 2.4.1) ?
>
> <cmath> is supposed to be the official header for std::fabs. It might get
> indirectly included on other systems by accident.
>
> diff --git a/gdal/ogr/ogrlinestring.cpp b/gdal/ogr/ogrlinestring.cpp
> index 810ad2e..1d4da9c 100644
> --- a/gdal/ogr/ogrlinestring.cpp
> +++ b/gdal/ogr/ogrlinestring.cpp
> @@ -31,6 +31,7 @@
> #include "ogr_geos.h"
> #include "ogr_p.h"
>
> +#include <cmath>
> #include <cstdlib>
> #include <algorithm>
> #include <limits>
With that patch (and not my earlier one), 2.4.1 builds without errors,
and postgis tests still pass. (I know I should run the gdal test suite,
but haven't yet.)
More information about the gdal-dev
mailing list