[geos-devel] compiling problem

Paul Ramsey pramsey at refractions.net
Sat Sep 11 23:44:13 EDT 2004


I have found all the cases of this and fixed them. We now compile on 
OS/X, if you pull the CVS version.

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




More information about the geos-devel mailing list