Boost C++ Libraries: Ticket #9428: Lib program_options build fail for mingw https://svn.boost.org/trac10/ticket/9428 <p> Library program_options (boost 1.55, same applies to earlier boost versions) does not build for mingw (4.6.2). Don't know if MinGW is fully supported by boost, but some libraries do seem to have adaptation for it. Solution seems straight-forward. File ...\libs\program_options\src\parsers.cpp: </p> <table class="wiki"> <tr>#if !defined(_WIN32) <td> defined(<span class="underline">COMO_VERSION</span>) </td></tr></table> <p> extern char<strong> environ; #else <em> SMAL patch for MinGW #if defined(_WIN32) &amp;&amp; defined(<span class="underline">MINGW32</span>) extern char</em></strong><em> environ; #endif </em></p> <p> (SMAL is a soon-to-be released open-source sw) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9428 Trac 1.4.3 Jan Rosendahl <jan.rosendahl@…> Sun, 24 Nov 2013 08:34:56 GMT attachment set https://svn.boost.org/trac10/ticket/9428 https://svn.boost.org/trac10/ticket/9428 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">parsers_patch_extract.cpp</span> </li> </ul> Ticket Jan Rosendahl <jan.rosendahl@…> Sun, 24 Nov 2013 09:08:54 GMT <link>https://svn.boost.org/trac10/ticket/9428#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9428#comment:1</guid> <description> <p> The proposed change does not work for building shared libraries, don't know if there is a way to solve that as well. </p> </description> <category>Ticket</category> </item> <item> <author>abel@…</author> <pubDate>Fri, 17 Jan 2014 17:00:50 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/9428 https://svn.boost.org/trac10/ticket/9428 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">po_environ_dirty_fix.patch</span> </li> </ul> <p> quick &amp; dirty fix for program_options </p> Ticket abel@… Fri, 17 Jan 2014 17:02:24 GMT <link>https://svn.boost.org/trac10/ticket/9428#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9428#comment:2</guid> <description> <p> I ran into the same problem when trying to compile for c++0x, so I fixed this quick and dirty. However, did not have time to test as other libraries would not compile either and I had to move on. I though I'd share it anyway. </p> </description> <category>Ticket</category> </item> </channel> </rss>