Boost C++ Libraries: Ticket #1825: thread.hpp injects windows.h and breaks user application. https://svn.boost.org/trac10/ticket/1825 <p> reduced testcase: </p> <pre class="wiki">#include &lt;boost/thread/thread.hpp&gt; int const ERROR = 1; </pre><p> works fine with boost-1.34.1 and doesn't compile with 1.35.0. </p> <pre class="wiki">Compiling... example.cpp example.cpp(2) : warning C4091: '' : ignored on left of 'const int' when no variable is declared example.cpp(2) : error C2143: syntax error : missing ';' before 'constant' example.cpp(2) : error C2059: syntax error : 'constant' </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1825 Trac 1.4.3 Anthony Williams Fri, 25 Jul 2008 21:26:11 GMT <link>https://svn.boost.org/trac10/ticket/1825#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1825#comment:1</guid> <description> <p> This is due to the dependency on boost.datetime, which includes &lt;windows.h&gt;. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Thu, 13 Nov 2008 18:45:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1825#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1825#comment:2</guid> <description> <p> Boost.<a class="missing wiki">DateTime</a> is fixed now, so this ticket might be fixed, too. </p> </description> <category>Ticket</category> </item> <item> <author>rotoglup@…</author> <pubDate>Wed, 03 Dec 2008 14:36:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1825#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1825#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1825#comment:2" title="Comment 2">andysem</a>: </p> <blockquote class="citation"> <p> Boost.<a class="missing wiki">DateTime</a> is fixed now, so this ticket might be fixed, too. </p> </blockquote> <p> As of boost_1_37_0, the problem still exists : windows.h is included by 'thread.hpp' due to 'boost/date_time/microsec_time_clock.hpp' </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Mon, 02 Feb 2009 17:56:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1825#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1825#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1825#comment:3" title="Comment 3">rotoglup@gmail.com</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1825#comment:2" title="Comment 2">andysem</a>: </p> <blockquote class="citation"> <p> Boost.<a class="missing wiki">DateTime</a> is fixed now, so this ticket might be fixed, too. </p> </blockquote> <p> As of boost_1_37_0, the problem still exists : windows.h is included by 'thread.hpp' due to 'boost/date_time/microsec_time_clock.hpp' </p> </blockquote> <p> The fix didn't make it into 1.37. It will be released in 1.38. It is now available in trunk and branches/release. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Fri, 18 Sep 2009 21:03:55 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1825#comment:5 https://svn.boost.org/trac10/ticket/1825#comment:5 <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 anonymous Wed, 05 Dec 2012 13:46:52 GMT <link>https://svn.boost.org/trac10/ticket/1825#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1825#comment:6</guid> <description> <p> I have this problem, but I can build my application in debug configuration. However, when I switch to release, it doesn't build and gives me this error </p> <pre class="wiki">error C2146: syntax error : missing ';' before identifier 'curr' c:\libraries\boost\boost_1_46_1\boost\date_time\microsec_time_clock.hpp 99 1 SceneStateRecognition error C2065: 'curr' : undeclared identifier c:\libraries\boost\boost_1_46_1\boost\date_time\microsec_time_clock.hpp 99 1 SceneStateRecognition </pre><p> I could not post the whole thing, but this is more or less what is coming out... </p> <p> Does anyone know how to fix this? </p> </description> <category>Ticket</category> </item> </channel> </rss>