[geos-devel] compiling problem

Michel Garand garand at odragis.org
Sun Sep 12 09:48:47 EDT 2004


On Sun, 2004-09-12 at 10:51, strk at refractions.net wrote:
> On Sat, Sep 11, 2004 at 08:44:13PM -0700, Paul Ramsey wrote:
> > I have found all the cases of this and fixed them. We now compile on 
> > OS/X, if you pull the CVS version.
> 
> Excellent!
> --strk;
> 
Thanks for the help!
Michel

> > 
> > On Saturday, September 11, 2004, at 10:17 AM, strk at refractions.net 
> > wrote:
> > 
> > >On Sat, Sep 11, 2004 at 07:12:34AM +0200, Michel Garand wrote:
> > >>Greetings!
> > >>
> > >>I am compiling GEOS 2.0.0 on a Debian machine
> > >>
> > >>why do i get the following error?
> > >>
> > >>......
> > >>LineString.cpp:221: comparison of distinct pointer types 
> > >>`geos::Geometry
> > >>*' and `const geos::LineString *' lacks a cast
> > >
> > >Because that comparison lacks a cast :<
> > >Actually the two pointers are of the same size, and the objects they
> > >point to are one a subclass of the other.
> > >
> > >I never got a compiler error
> > >[g++ (GCC) 3.3.2 20031005 (Debian prerelease)]
> > >
> > >Substitute line 221 of source/geom/LineString.cpp from:
> > >        if ( in != this ) delete(in);
> > >to:
> > >        if ( (LineString *)in != this ) delete(in);
> > >
> > >and see if your compiler likes it.
> > >
> > >Other places omit that cast, though..
> > >
> > >What's your compiler version ?
> > >
> > >--strk;
> > >_______________________________________________
> > >geos-devel mailing list
> > >geos-devel at geos.refractions.net
> > >http://geos.refractions.net/mailman/listinfo/geos-devel
> > >
> >      Paul Ramsey
> >      Refractions Research
> >      Email: pramsey at refractions.net
> >      Phone: (250) 885-0632
> > 
> > _______________________________________________
> > geos-devel mailing list
> > geos-devel at geos.refractions.net
> > http://geos.refractions.net/mailman/listinfo/geos-devel
> _______________________________________________
> 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