[QGIS-trac] Re: [Quantum GIS] #1854: qgisinterpolator.cpp causing build error on OS X

Quantum GIS qgis at qgis.org
Tue Aug 4 11:53:16 EDT 2009


#1854: qgisinterpolator.cpp causing build error on OS X
-----------------------------------------------------+----------------------
        Reporter:  jctull                            |         Owner:  nobody              
            Type:  bug                               |        Status:  new                 
        Priority:  major: does not work as expected  |     Milestone:  Version 1.2.0       
       Component:  Build/Install                     |       Version:  HEAD                
      Resolution:                                    |      Keywords:  qgisinterpolator mac
Platform_version:  10.5.7                            |      Platform:  OS X                
        Must_fix:  Yes                               |   Status_info:  0                   
-----------------------------------------------------+----------------------
Comment (by kyngchaos):

 [jef] wrote on the dev list:

 > http://trac.osgeo.org/geos/ticket/270 might also relate to that.

 > Does replacing

 > #include <cmath>

 > with

 > #include <math.h>

 > in src/core/qgis.h help?

 ...now I'm back to the original error John had, just in tininterpolator.
 So interpolator is doing something right so that isnan works.  Or
 tininterpolator is including another header that includes <cmath> (the
 trail was too tangled for me to follow).

 As a test, I changed isnan() in tininterpolator to std::isnan() and it
 compiled.  Doing the same for interpolator breaks with:

 {{{error: expected unqualified-id before '(' token}}}

 So there seems to be some sort of namespace issue in tininterpolator, or
 <cmath> is included somewhere.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1854#comment:8>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list