[geos-devel] compiling problem

Michel Garand garand at odragis.org
Sat Sep 11 01:12:34 EDT 2004


I am compiling GEOS 2.0.0 on a Debian machine

why do i get the following error?


source='LineString.cpp' object='LineString.lo' libtool=yes \
depfile='.deps/LineString.Plo' tmpdepfile='.deps/LineString.TPlo' \
depmode=gcc /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../../source/headers -I../../source/headers/geos
-I../../source/headers -DGEOS_VERSION=""2.0.0""    -g -O2 -c -o
LineString.lo `test -f 'LineString.cpp' || echo './'`LineString.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers
-I../../source/headers/geos -I../../source/headers -DGEOS_VERSION=2.0.0
-g -O2 -c LineString.cpp -Wp,-MD,.deps/LineString.TPlo  -fPIC -DPIC -o
LineString.cpp: In method `bool geos::LineString::isSimple() const':
LineString.cpp:221: comparison of distinct pointer types `geos::Geometry
*' and `const geos::LineString *' lacks a cast
make[2]: *** [LineString.lo] Error 1
make[2]: Leaving directory `/home/michel/gis/src/geos-2.0.0/source/geom'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/michel/gis/src/geos-2.0.0/source'
make: *** [all-recursive] Error 1

Thanks in advance for any help on this issue

Best regards
Michel Garand

More information about the geos-devel mailing list