[gdal-dev] GDAL/OGR 2.4.1 is released

Even Rouault even.rouault at spatialys.com
Fri Mar 22 07:37:44 PDT 2019


Greg,

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>


Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list