[geos-devel] Compiling Error GEOS-1.4

strk strk at keybit.net
Tue Jun 15 03:32:58 EDT 2004


On Tue, Jun 15, 2004 at 08:57:46AM +0100, Düster Horst wrote:
> I try to compile GEOS-1.4 but without success. After download
> geos-cvs.tar.bz2 and ./configure
> 
> make results in the following crash:
> 
> if /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> -I../../source/headers -I../../source/headers -I../../so
> urce/headers -DGEOS_VERSION=""1.4""    -g -O2 -MT planarDirectedEdge.lo -MD
> -MP -MF ".deps/planarDirectedEdge.Tpo" \
>   -c -o planarDirectedEdge.lo `test -f
> '../planargraph/planarDirectedEdge.cpp' || echo
> './'`../planargraph/planarDirectedEdg
> e.cpp; \
> then mv -f ".deps/planarDirectedEdge.Tpo" ".deps/planarDirectedEdge.Plo"; \
> else rm -f ".deps/planarDirectedEdge.Tpo"; exit 1; \
> fi
>  g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers -I../../source/headers
> -I../../source/headers -DGEOS_VERSION=1.4 -g -O2
> -MT planarDirectedEdge.lo -MD -MP -MF .deps/planarDirectedEdge.Tpo -c
> ../planargraph/planarDirectedEdge.cpp  -fPIC -DPIC -o
> .libs/planarDirectedEdge.o
> ../planargraph/planarDirectedEdge.cpp: In method `string
> geos::planarDirectedEdge::print ()':
> ../planargraph/planarDirectedEdge.cpp:198: `sprintf' undeclared (first use
> this function)
> ../planargraph/planarDirectedEdge.cpp:198: (Each undeclared identifier is
> reported only once for each
> function it appears in.)
> make[2]: *** [planarDirectedEdge.lo] Error 1
> make[2]: leaving directory »/usr/local/src/sogis/geos-1.4/source/geom«
> make[1]: *** [all-recursive] Error 1
> make[1]: leaving directory »/usr/local/src/sogis/geos-1.4/source«
> make: *** [all-recursive] Error 1
> 
> My system:
> gcc version 2.96 20000731 
> Red Hat Linux 7.1 2.96-98
> 
> 
> I would be appreciated about any hint.
> 
> Best regards 
> Horst

Horst, add this at line 30:
#include <stdio.h>

Let me know if you still have problems.

--strk;

> _______________________________________________
> 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