Opened 8 years ago
Closed 8 years ago
#802 closed defect (duplicate)
geos-3.6.1 fails while compiling for android-ndk due to missing include for fabs
Reported by: | mj10777 | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 3.6.1 |
Component: | Default | Version: | 3.6.0 |
Severity: | Unassigned | Keywords: | |
Cc: |
Description
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.
Note:
See TracTickets
for help on using tickets.
This is actually a duplicate of #799, which wasn't backported yet.