<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div>Mark,<br><br>after some deliberation, I think I've found the issue. Currently the line reads:<br><br>#if !defined(__MINGW32__) || defined(__MINGW32__) &amp;&amp; !defined(DLL_EXPORT) || <br>!defined(__CYGWIN__) || defined(__CYGWIN__) &amp;&amp; !defined(DLL_EXPORT)<br><br>However if it is changed to read:<br><br>#if defined(__MINGW32__) &amp;&amp;
!defined(DLL_EXPORT) || <br>!defined(__CYGWIN__) || defined(__CYGWIN__)
&amp;&amp; !defined(DLL_EXPORT)<br><br>It compiles correctly.<br><br>Therefore I think this is a logic issue. If __CYGWIN__ is defined, then you would expect __MINGW32__ not to be defined, or vice versa. So this condition will always be met even if you have either Cygwin or MinGW (at least that seems to be what's happening on my system). I don't exactly understand how the multiple definition errors are occuring, so can't suggest a replacement, but wouldn't a nested if structure be better, eg:<br><br>if mingw32 or cygwin defined<br>&nbsp;&nbsp;&nbsp; if dll_export defined<br>&nbsp;&nbsp;&nbsp; do nothing<br>&nbsp;&nbsp;&nbsp; else <br>&nbsp;&nbsp;&nbsp; include inline files<br>&nbsp;&nbsp;&nbsp; end if<br>do nothing<br>else<br>include inline files<br>end if<br><br>Regards<br><br>Steve<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font size="2"
 face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;<br><b><span style="font-weight: bold;">To:</span></b> GEOS Development List &lt;geos-devel@lists.osgeo.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, 6 November, 2008 17:39:34<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [geos-devel] Fw: 3.0<br></font><br><br>&gt; So it doesn't appear that the __CYGWIN__ macro is being defined. Can<br>&gt; anyone point me in the direction of what's going on here? I know now it's<br>&gt; not essential for me to build at all, but it might be for other systems &amp;<br>&gt; I want to learn and help out the community if I can.<br>&gt;<br>&gt; Regards<br>&gt;<br>&gt; Stephen (noob if you hadn't guessed!)<br><br>*blinks* that makes no sense at all!? Can you knock up a quick C program<br>to verify whether or not this is actually the case, or whether
 it's<br>something strange that autoconf is putting in compile/link flags?<br><br><br>Many thanks,<br><br>Mark.<br><br><br>_______________________________________________<br>geos-devel mailing list<br><a ymailto="mailto:geos-devel@lists.osgeo.org" href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br></div></div></div><br>



      </body></html>