[postgis-users] geos error when compile
Mateusz Loskot
mateusz at loskot.net
Wed Sep 27 16:38:08 PDT 2006
claudio cesar trevisani wrote:
> I'm installing a Postgresql "7.4.5" database on debian and I'm trying to
> install geos (1.0 ... 2.0...) for use with Postgis & Postgresql. After the
> configure (see below) I do a make and the error apear:
>
> g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers -I../../source/headers/geos -
> I../../source/headers -DGEOS_VERSION=2.2.1 -g -O2 -MT Coordinate.lo -MD -MP -
> MF .deps/Coordinate.Tpo -c Coordinate.cpp -fPIC -DPIC -o .libs/Coordinate.o
../../source/headers/geos/geom.h:361: error: extra
qualification 'geos::Coordinate::' on member 'setNull'
>
> [...]
> How can I solve it?
You're using to recent C++ compiler ,-)
http://www.fourmilab.ch/fourmilog/archives/2006-05/000699.html
The fast fix is to replace all occurences of
geos::Coordinate::setNull(...);
to
setNull(...);
in geos.h header file.
And do the same for rest of reported functions.
I don't remember, but I believe there is some backfix for this issue.
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the postgis-users
mailing list