Ticket #270 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

isnan() in combination with <cmath> breaks OS/X build

Reported by: pramsey Owned by: pramsey
Priority: major Milestone: 3.2.0
Component: Default Version: svn-trunk
Severity: Unassigned Keywords:
Cc:

Description

At r2554 an ISNAN macro was sprinkled about the code base. The net effect in building is now this:

../../../source/headers/geos/geom/Coordinate.inl: In member function 'bool geos::geom::Coordinate::isNull() const':
../../../source/headers/geos/geom/Coordinate.inl:46: error: 'isnan' was not declared in this scope

This is a well-known problem with no simple fixes, it will involve some special-case hack-around, probably to ensure ISNAN gets bound to the right place. This thread seems to have most information (read backwards into previous posts)

 http://lists.apple.com/archives/xcode-users/2005/May/msg00792.html

Change History

Changed 4 years ago by pramsey

  • status changed from new to closed
  • resolution set to fixed

Fix committed to trunk at r2601. This needs testing in other operating systems to ensure the autoconf recipe doesn't catch them by mistake.

Changed 4 years ago by pramsey

Fix to the fix committed at r2603.

Note: See TracTickets for help on using tickets.