[geos-devel] cygwin Compile Error

strk at refractions.net strk at refractions.net
Wed Apr 6 07:07:52 EDT 2005


Committed. Thanks.
--strk;

On Tue, Apr 05, 2005 at 04:51:01PM -0400, Jon Schlueter wrote:
> On Feb 18, 2005 1:18 PM, strk at refractions.net <strk at refractions.net> wrote:
> > On Thu, Feb 17, 2005 at 01:24:59PM -0500, Jon Schlueter wrote:
> > > update,
> > >
> > > I found multiple math.h includes but the only thing that I could find
> > > that would get it to compile under cygwin was to make ieeefp.h extern
> > > "C" with the following
> > 
> > Didn't using <cmath> all over work (I don't think we should have
> > direct .h inclusions anyway)
> > --strk;
> > 
> 
> Update on Compile Status under Windows using Cygwin
> 
> I finally had a bit of time to check things out again
> 
> With the the attached diff file changes to the current CVS tree I was
> able to compile and run the test programs.
> System:
>     Windows XP Pro - Cygwin - gcc  (GCC) 3.3.3 (cygwin special)
> 
> Jon Schlueter

> ? diff.txt
> Index: source/algorithm/CGAlgorithms.cpp
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/algorithm/CGAlgorithms.cpp,v
> retrieving revision 1.21
> diff -b -r1.21 CGAlgorithms.cpp
> 18c18
> < #include <math.h>
> ---
> > #include <cmath>
> Index: source/algorithm/LineIntersector.cpp
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/algorithm/LineIntersector.cpp,v
> retrieving revision 1.22
> diff -b -r1.22 LineIntersector.cpp
> 19c19
> < #include <math.h>
> ---
> > #include <cmath>
> Index: source/algorithm/NonRobustLineIntersector.cpp
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/algorithm/NonRobustLineIntersector.cpp,v
> retrieving revision 1.9
> diff -b -r1.9 NonRobustLineIntersector.cpp
> 31c31
> < #include <math.h>
> ---
> > #include <cmath>
> Index: source/algorithm/RobustDeterminant.cpp
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/algorithm/RobustDeterminant.cpp,v
> retrieving revision 1.6
> diff -b -r1.6 RobustDeterminant.cpp
> 29c29
> < #include <math.h>
> ---
> > #include <cmath>
> Index: source/bigtest/GeometryTestFactory.cpp
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/bigtest/GeometryTestFactory.cpp,v
> retrieving revision 1.12
> diff -b -r1.12 GeometryTestFactory.cpp
> 16c16
> < #include <math.h>
> ---
> > #include <cmath>
> Index: source/geomgraph/DirectedEdge.cpp
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/geomgraph/DirectedEdge.cpp,v
> retrieving revision 1.2
> diff -b -r1.2 DirectedEdge.cpp
> 32c32
> < #include <math.h>
> ---
> > #include <cmath>
> Index: source/geomgraph/EdgeEnd.cpp
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/geomgraph/EdgeEnd.cpp,v
> retrieving revision 1.4
> diff -b -r1.4 EdgeEnd.cpp
> 21c21
> < #include <math.h>
> ---
> > #include <cmath>
> Index: source/geomgraph/index/SegmentIntersector.cpp
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/geomgraph/index/SegmentIntersector.cpp,v
> retrieving revision 1.7
> diff -b -r1.7 SegmentIntersector.cpp
> 18c18
> < #include <math.h>
> ---
> > #include <cmath>
> Index: source/headers/geos/platform.h.in
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/headers/geos/platform.h.in,v
> retrieving revision 1.6
> diff -b -r1.6 platform.h.in
> 13a14,15
> > extern "C"
> > {
> 14a17
> > };
> Index: source/noding/snapround/SegmentSnapper.cpp
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/noding/snapround/SegmentSnapper.cpp,v
> retrieving revision 1.3
> diff -b -r1.3 SegmentSnapper.cpp
> 33c33
> < #include <math.h>
> ---
> > #include <cmath>
> Index: source/planargraph/planarDirectedEdge.cpp
> ===================================================================
> RCS file: /home/cvs/postgis/geos/source/planargraph/planarDirectedEdge.cpp,v
> retrieving revision 1.8
> diff -b -r1.8 planarDirectedEdge.cpp
> 18c18
> < #include <math.h>
> ---
> > #include <cmath>

> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel




More information about the geos-devel mailing list