[geos-devel] Error Compiling GEOS CVS and Snapshot File Missing

strk at refractions.net strk at refractions.net
Mon May 9 15:17:40 EDT 2005


I didn't get errors with GCC 3.4.3, anyway this patch should
fix it, please try:

Index: source/headers/geos/WKBWriterT.h
===================================================================
RCS file: /home/cvs/postgis/geos/source/headers/geos/WKBWriterT.h,v
retrieving revision 1.3
diff -U2 -r1.3 WKBWriterT.h
--- source/headers/geos/WKBWriterT.h    29 Apr 2005 17:40:36 -0000      1.3
+++ source/headers/geos/WKBWriterT.h    9 May 2005 19:17:00 -0000
@@ -113,5 +113,5 @@

 template<class T> void
-WKBWriterT<T>::write(const Geometry &g, T &os=outStream)
+WKBWriterT<T>::write(const Geometry &g, T &os)
 {
        outStream = &os;



--
strk;

On Mon, May 09, 2005 at 11:53:00AM -0600, Darren Houston wrote:
> Hello everyone,
> 
> It's been about 6 months since I've updated my PostGIS and GEOS to the latest 
> and greatest (CVS) to play with. I grabbed GEOS from the hourly snapshot from 
> the website, configured and started to compile. An error was thrown;
> 
> ../../source/headers/geos/io.h:272:29: geos/WKBWriterT.h: No such file or 
> directory
> 
> Indeed, this file is missing. So, I grabbed the latest CVS source (17:00 hours 
> GMT, May 9), ran autogen.sh, made sure WKBWriterT.h was in the source (which 
> it was), configured and started to compile. An error was thrown;
> 
> In file included from ../../source/headers/geos/io.h:272,
>                  from Geometry.cpp:28:
> ../../source/headers/geos/WKBWriterT.h:115: error: invalid use of member `
>    geos::WKBWriterT<T>::outStream'
> 
> WKBWriterT.h is giving me problems. I looked at WKBWriterT.h, but I'm not a 
> C++ programmer, so no blazing mistakes jumped out at me.
> 
> My environment is as follows;
> 
> gcc (GCC) 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
> GNU Make 3.80
> 
> Let me know if you want any more info.
> 
> Hope this was usefull,
> 
> Darren H.
> _______________________________________________
> 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