[geos-devel] [GEOS] #802: geos-3.6.1 fails while compiling for android-ndk due to missing include for fabs

GEOS geos-trac at osgeo.org
Tue Jan 17 22:24:45 PST 2017


#802: geos-3.6.1 fails while compiling for android-ndk due to missing include for
fabs
------------------------+--------------------------
 Reporter:  mj10777     |      Owner:  geos-devel@…
     Type:  defect      |     Status:  new
 Priority:  major       |  Milestone:  3.6.1
Component:  Default     |    Version:  3.6.0
 Severity:  Unassigned  |   Keywords:
------------------------+--------------------------
 While compiling a spatialite library for android (with rttopo)
 - new methods using 'fabs' fail

 geos-3.6.1/src/algorithm/MinimumDiameter.cpp: In static member function
 'static geos::geom::LineSegment
 geos::algorithm::MinimumDiameter::computeSegmentForLine(double, double,
 double)':

 geos-3.6.1/src/algorithm/MinimumDiameter.cpp:370:12: error: 'fabs' was not
 declared in this scope

 Adding:

 #include <math.h>       /* fabs */

 resolves this.

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/802>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list