Boost C++ Libraries: Ticket #1547: [thread] error C2065: 'NULL' : undeclared identifier in thread_primitives.hpp https://svn.boost.org/trac10/ticket/1547 <blockquote> <p> The <a class="ext-link" href="http://incubator.apache.org/stdcxx/"><span class="icon">​</span>stdcxx</a> is the another implementation of the STL (initially based on <a class="missing wiki">RogueWave</a> STL). </p> </blockquote> <blockquote> <p> The following errors are encountered when running boost regression tests on msvc with stdcxx-4.2.0. </p> </blockquote> <pre class="wiki">d:\boost\boost\boost\thread\win32\thread_primitives.hpp(184) : error C2065: 'NULL' : undeclared identifier d:\boost\boost\boost\thread\win32\thread_primitives.hpp(184) : error C2065: 'NULL' : undeclared identifier </pre><p> I propose to add #include &lt;cstdlib&gt; in thread_primitives.hpp to define the NULL macro, or even better - replace the all NULL macros to 0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1547 Trac 1.4.3 Anthony Williams Fri, 15 Feb 2008 17:58:06 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1547#comment:1 https://svn.boost.org/trac10/ticket/1547#comment:1 <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