Boost C++ Libraries: Ticket #1542: [test] compiler errors when building with stdcxx library https://svn.boost.org/trac10/ticket/1542 <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">..\boost\test\impl\debug.ipp(827) : error C2039: 'memset' : is not a member of 'std' ..\boost\test\impl\execution_monitor.ipp(792) : error C3861: '_set_se_translator': identifier not found, even with argument-dependent lookup ..\boost\test\impl\execution_monitor.ipp(987) : error C3861: '_set_se_translator': identifier not found, even with argument-dependent lookup </pre><blockquote> <p> The proposed patch: </p> <pre class="wiki">--- boost\test\impl\debug.ipp +++ boost\test\impl\debug.ipp @@ -32,6 +32,7 @@ # include &lt;windows.h&gt; # include &lt;winreg.h&gt; # include &lt;cstdio&gt; +# include &lt;cstring&gt; // for std::memset() # if !defined(NDEBUG) &amp;&amp; defined(_MSC_VER) # define BOOST_MS_CRT_BASED_DEBUG --- boost\test\impl\execution_monitor.ipp +++ boost\test\impl\execution_monitor.ipp @@ -65,7 +65,7 @@ # include &lt;windows.h&gt; -# if defined(__MWERKS__) +# if defined(__MWERKS__) || defined(_MSC_VER) # include &lt;eh.h&gt; # endif </pre></blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1542 Trac 1.4.3 faridz@… Fri, 28 Dec 2007 16:31:28 GMT <link>https://svn.boost.org/trac10/ticket/1542#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1542#comment:1</guid> <description> <p> Another error encountered on gcc/linux with stdcxx-4.2.0: </p> <pre class="wiki">../boost/test/impl/debug.ipp:280: error: 'sscanf' is not a member of 'std' </pre><p> The reason is that &lt;stdio.h&gt; #included, but used std::sscanf() instead of sscanf(). </p> <p> I propose to #include &lt;cstdio&gt; instead of &lt;stdio.h&gt; in unix implementation (line 72). In this case the #include &lt;cstdio&gt; and #include &lt;cstring&gt; lines, which are also present in windows implementation, can be moved to the top of file. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 02 Jan 2008 18:47:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1542#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1542#comment:2</guid> <description> <p> See <a class="ext-link" href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#456"><span class="icon">​</span>http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#456</a> for some background on this. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 18 Jan 2008 16:18:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1542#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1542#comment:3</guid> <description> <p> Could someone review Farid's patch and either commit it if it's appropriate or let us know if there's a problem with it? This problem is blocking our progress on building Boost with the Apache C++ Standard Library. Thanks! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Mon, 21 Jan 2008 17:17:36 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1542#comment:4 https://svn.boost.org/trac10/ticket/1542#comment:4 <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> it should be applied by now </p> Ticket faridz@… Tue, 05 Feb 2008 08:06:01 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/1542#comment:5 https://svn.boost.org/trac10/ticket/1542#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <blockquote> <p> The one problem still exist on ICC/Windows, because it uses headers from MSVC, but now &lt;eh.h&gt; #included on MSVC and Metrowerks only. </p> </blockquote> <blockquote> <p> The proposed patch: </p> <pre class="wiki">Index: boost/test/impl/execution_monitor.ipp =================================================================== --- boost/test/impl/execution_monitor.ipp (revision 43095) +++ boost/test/impl/execution_monitor.ipp (working copy) @@ -65,7 +65,7 @@ # include &lt;windows.h&gt; -# if defined(__MWERKS__) || (defined(BOOST_MSVC) &amp;&amp; !defined(UNDER_CE)) +# if defined(__MWERKS__) || (defined(_MSC_VER) &amp;&amp; !defined(UNDER_CE)) # include &lt;eh.h&gt; # endif </pre></blockquote> Ticket faridz@… Wed, 04 Jun 2008 11:08:30 GMT <link>https://svn.boost.org/trac10/ticket/1542#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1542#comment:6</guid> <description> <p> I see that the last problem was fixed in <a class="ext-link" href="http://svn.boost.org/trac/boost/changeset/44392"><span class="icon">​</span>rev.44392</a>, but what would be with including &lt;eh.h&gt; when compiling on MSVC9 (where _MSC_VER == 1500) ? </p> </description> <category>Ticket</category> </item> <item> <author>Farid Zaripov <faridz@…></author> <pubDate>Fri, 13 Jun 2008 17:24:22 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1542#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1542#comment:7</guid> <description> <p> The problem in boost/test/impl/execution_monitor.ipp is still present on MSVC 9.0 and ICC/Windows with using C-runtime from MSVC 9.0. </p> <p> See <a class="ext-link" href="http://beta.boost.org/development/tests/trunk/developer/output/msvc-9-0-x64-stdcxx-4-2-1-boost-bin-v2-libs-accumulators-test-count-test-msvc-9-0_x64_stdcxx_421-debug-address-model-64-iterator_debugging-off-link-static-stdlib-stdcxx-4-2-1-threading-multi.html"><span class="icon">​</span>here</a> and <a class="ext-link" href="http://beta.boost.org/development/tests/trunk/developer/output/icc-10-1-stdcxx-4-2-1-boost-bin-v2-libs-accumulators-test-count-test-intel-win-10-1_stdcxx_421-debug-iterator_debugging-off-link-static-stdlib-stdcxx-4-2-1-threading-multi.html"><span class="icon">​</span>here</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Thu, 19 Jun 2008 14:50:44 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1542#comment:8 https://svn.boost.org/trac10/ticket/1542#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket