Boost C++ Libraries: Ticket #1595: [spirit] missing #includes https://svn.boost.org/trac10/ticket/1595 <blockquote> <p> The <a class="ext-link" href="http://stdcxx.apache.org/"><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">ast_calc_tests.cpp ..\boost/spirit/tree/impl/tree_to_xml.ipp(67) : error C3861: 'strlen': identifier not found ..\libs\spirit\test\ast_calc_tests.cpp(158) : error C3861: 'strtol': identifier not found </pre><blockquote> <p> The proposed patch: </p> </blockquote> <pre class="wiki">Index: boost/spirit/tree/impl/tree_to_xml.ipp =================================================================== --- boost/spirit/tree/impl/tree_to_xml.ipp (revision 42908) +++ boost/spirit/tree/impl/tree_to_xml.ipp (working copy) @@ -13,6 +13,7 @@ #include &lt;cstdio&gt; #include &lt;cstdarg&gt; +#include &lt;string.h&gt; // for strlen() #include &lt;locale&gt; #include &lt;string&gt; Index: libs/spirit/test/ast_calc_tests.cpp =================================================================== --- libs/spirit/test/ast_calc_tests.cpp (revision 42908) +++ libs/spirit/test/ast_calc_tests.cpp (working copy) @@ -13,6 +13,7 @@ #include &lt;boost/spirit/tree/tree_to_xml.hpp&gt; #include &lt;boost/detail/workaround.hpp&gt; +#include &lt;stdlib.h&gt; // for strtol() #include &lt;iostream&gt; #include &lt;stack&gt; #include &lt;functional&gt; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1595 Trac 1.4.3 faridz@… Wed, 23 Jan 2008 10:51:49 GMT <link>https://svn.boost.org/trac10/ticket/1595#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1595#comment:1</guid> <description> <blockquote> <p> Another errors: </p> <pre class="wiki">numerics_tests.cpp ..\libs\spirit\test\numerics_tests.cpp(138) : error C2065: 'UINT_MAX' : undeclared identifier ..\libs\spirit\test\numerics_tests.cpp(153) : error C2065: 'INT_MAX' : undeclared identifier ..\libs\spirit\test\numerics_tests.cpp(156) : error C2065: 'INT_MIN' : undeclared identifier </pre></blockquote> <blockquote> <p> The patch: </p> <pre class="wiki">Index: libs/spirit/test/numerics_tests.cpp =================================================================== --- libs/spirit/test/numerics_tests.cpp (revision 42908) +++ libs/spirit/test/numerics_tests.cpp (working copy) @@ -9,6 +9,7 @@ =============================================================================*/ #include &lt;boost/spirit/core.hpp&gt; #include &lt;boost/spirit/actor/assign_actor.hpp&gt; +#include &lt;climits&gt; // for INT_MIN, INT_MAX, UINT_MAX #include &lt;iostream&gt; #include &lt;boost/detail/lightweight_test.hpp&gt; </pre></blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>Hartmut Kaiser</dc:creator> <pubDate>Wed, 23 Jan 2008 13:35:25 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1595#comment:2 https://svn.boost.org/trac10/ticket/1595#comment:2 <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> <p> I applied your patch to V1.35. and the trunk. </p> <p> Regards Hartmut </p> Ticket