Boost C++ Libraries: Ticket #8331: Boost compatibility with Interix https://svn.boost.org/trac10/ticket/8331 <p> When including the boost libraries on a Windows XP SP3 machine via Interix v3.5 using gcc 3.4.6 I would receive a number of pre-compiler errors complaining that boost threads were "unavailable on this platform". I resolved this issue by including the following code prior to the first inclusion of a boost library: </p> <blockquote> <p> #ifdef ARCH_Interix <em> an internal definition </em></p> </blockquote> <blockquote> <p> # include &lt;boost/config.hpp&gt; </p> </blockquote> <blockquote> <p> # define BOOST_HAS_THREADS </p> </blockquote> <blockquote> <p> # define BOOST_HAS_PTHREADS </p> </blockquote> <blockquote> <p> #endif </p> </blockquote> <p> There must be a more eloquent way of setting the thread definitions for Interix from within files such as /boost/thread/detail/platform.hpp, boost/thread/detail/config.hpp, or boost/config/select_platform_config.hpp. I'll leave that to the development teams prerogative. In any case, making the boost libraries comparable with Interix should not be overly complex. Please let me know if I can provide more information. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8331 Trac 1.4.3 Andrin Foster <akf@…> Mon, 25 Mar 2013 15:27:26 GMT <link>https://svn.boost.org/trac10/ticket/8331#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8331#comment:1</guid> <description> <p> please note, "an internal definition" is meant to be commented. where </p> <pre class="wiki">ARCH_Interix </pre><blockquote> <p> is the SDS equivalent of what would be </p> </blockquote> <pre class="wiki">__INTERIX__ </pre><blockquote> <p> in Boost style. </p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>Edward Diener</dc:creator> <pubDate>Sun, 17 May 2015 02:44:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8331#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8331#comment:2</guid> <description> <p> This needs to be filed as a config issue and not a preprocessor issue. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Edward Diener</dc:creator> <pubDate>Sun, 17 May 2015 02:45:05 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8331#comment:3 https://svn.boost.org/trac10/ticket/8331#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket