On Mon, 2007-01-22 at 10:15 -0500, Obe, Regina wrote:
> I'm getting an error when trying to compile Geos 2.2.3 on a Windows XP
> box.  I'm using MinGW-5.1.2, Msys-1.0.11.
>  
> The error I get is below. 
>  
> 
> In file included from ../../source/headers/geos/profiler.h:27,
>                  from ../geomgraph/EdgeList.cpp:19:
> .../../source/headers/geos/timeval.h:25: error: redefinition of `struct
> timezone'
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/time.h:27:
> error: previous definition of `struct timezone'
> 
> Thanks,
> Regina


Hi Regina,

It looks as if the MingW guys have finally added an in-built "struct
timezone" to the latest version of their runtime here which is causing
the problem:
http://sourceforge.net/project/shownotes.php?group_id=2435&release_id=158845 
(as a side note, it also looks as if they have added in their own version of 
gettimeofday() at the same time). The reason this hasn't shown up in my builds 
is that I'm currently still using the older version of MingW (4.1.0) which 
doesn't have this change.

The solution here should be to remove the "struct timezone { ... }" from
timeval.h and then trying "make" again to see if it allows the build to
get any further.


Kind regards,

Mark.


_______________________________________________
geos-devel mailing list
geos-devel@geos.refractions.net
http://geos.refractions.net/mailman/listinfo/geos-devel

Reply via email to