[geos-devel] Some Compile Issues

Paul Ramsey pramsey at refractions.net
Tue Feb 11 17:45:13 EST 2003


OK, since there were some new checkins I started doing some compile 
stuff on Linux.

Firstly, in PointCoordinateList.cpp on lines 25 and 35, the for loops 
should have {} around their commands (don't skimp on the {}!).

Secondly, I have a cataclysmic failure in Geometry.cpp, as follows:

/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I../../source/headers -I../../source/headers -DGEOS_VERSION=\""1"\" 
-g -O2 -c -o Geometry.lo `test -f 'Geometry.cpp' || echo './'`Geometry.cpp
rm -f .libs/Geometry.lo
g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers 
-I../../source/headers -DGEOS_VERSION=\"1\" -g -O2 -c Geometry.cpp -MT 
Geometry.lo -MD -MP -MF .deps/Geometry.TPlo  -fPIC -DPIC -o 
.libs/Geometry.lo
/usr/include/g++-3/stl_algo.h: In function `const _Tp &__median (const
_Tp &, const _Tp &, const _Tp &, _Compare) [with _Tp = Coordinate,
_Compare = bool (*) (Coordinate &, Coordinate &)]':
/usr/include/g++-3/stl_algo.h:1309:   instantiated from 
`__introsort_loop (_RandomAccessIter, _RandomAccessIter, _Tp *, _Size, 
_Compare) [with _RandomAccessIter = Coordinate *, _Tp = Coordinate, 
_Size = int, _Compare = bool (*) (Coordinate &, Coordinate &)]'
/usr/include/g++-3/stl_algo.h:1332:   instantiated from `sort 
(_RandomAccessIter, _RandomAccessIter, _Compare) [with _RandomAccessIter 
= Coordinate *, _Compare = bool (*) (Coordinate &, Coordinate &)]'
Geometry.cpp:80:   instantiated from here
/usr/include/g++-3/stl_algo.h:64: could not convert `__a' to
`Coordinate &'
/usr/include/g++-3/stl_algo.h:65: could not convert `__b' to
`Coordinate &'
/usr/include/g++-3/stl_algo.h:67: could not convert `__a' to
`Coordinate &'
/usr/include/g++-3/stl_algo.h:71: could not convert `__a' to
`Coordinate &'
/usr/include/g++-3/stl_algo.h:73: could not convert `__b' to
`Coordinate &'
make[2]: *** [Geometry.lo] Error 1
make[2]: Leaving directory `/home/pramsey/geos/source/geom'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pramsey/geos/source'
make: *** [all-recursive] Error 1


-- 
       __
      /
      | Paul Ramsey
      | Refractions Research
      | Email: pramsey at refractions.net
      | Phone: (250) 885-0632
      \_




More information about the geos-devel mailing list