<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div>Re: problem with Inlines.cpp causing multiple definition errors on Cygwin<br><br>OK, it seems that the problem with multiple definition is caused by the if clause. The reason that I got geos to compile previously was that I was using the line:<br>#if defined(__MINGW32__) &amp;&amp; !defined(DLL_EXPORT)<br><br>and the condition wasn't being met therefore there was no multiple definition problem.<br><br>I understand these __......__ things are macros. Having tried Mark's patch:<br><br>#if !defined(__MINGW32__) || defined(__MINGW32__) &amp;&amp; !defined(DLL_EXPORT) || !defined(__CYGWIN__) || defined(__CYGWIN__) &amp;&amp; !defined(DLL_EXPORT)<br><br>, it doesn't work, neither does:<br><br>#if !defined(__MINGW32__) || defined(__MINGW32__) &amp;&amp;
!defined(DLL_EXPORT) || !defined(__CYGWIN32__) || defined(__CYGWIN32__)
&amp;&amp; !defined(DLL_EXPORT)<br><br>So it doesn't appear that the __CYGWIN__ macro is being defined. Can anyone point me in the direction of what's going on here? I know now it's not essential for me to build at all, but it might be for other systems &amp; I want to learn and help out the community if I can.<br><br>Regards<br><br>Stephen (noob if you hadn't guessed!)<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> Tuesday, 4 November, 2008 21:56:19<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [geos-devel] Fw:
 3.0?<br></font><br>On Mon, 2008-11-03 at 22:34 +0000, S Knox wrote:<br>&gt; Mark,<br>&gt; <br>&gt; Here are the diff files - I used a primitive version of diff, so hope<br>&gt; the formatting is OK. <br><br>Ummmm it's quite hard to read - "diff -c" or "diff -u" give more<br>human-readable output if they are available.<br><br>&gt; I managed to run autogen.sh with the latest SVN build - the problem<br>&gt; was they were in DOS not Unix line format for some reason. The<br>&gt; following build wasn't successful(with the same error), so hopefully<br>&gt; the diffs should shed some light.<br><br>Okay. It looks as if Cygwin doesn't define _WIN32 unless you specifically compile with <br>-mwin32 which is why it's still not working. I've reworked my original patch to use the<br>__CYGWIN__ define instead, which I've attached to this email for you to<br>try. Please apply against a geos-3.0.2 tarball and let us know how you<br>get
 on.<br><br><br>ATB,<br><br>Mark.<br><br></div></div></div><br>



      </body></html>