Boost C++ Libraries: Ticket #10571: type_index tests configuration issues for Oracle Studio c++ https://svn.boost.org/trac10/ticket/10571 <p> Problems: 1.type_index library tests failed to compile with error message "../../../boost/type_index/stl_type_index.hpp", line 165: Error: abi is not defined." with studio 12.4 (c++) on Solaris 11.2. </p> <p> 2.nortti test flags are incorrect for studio c++. </p> <p> Solution for problem 1: in boost/type_index/stl_type_index.hpp 42:#ifdef <span class="underline">GNUC</span> 43 # include &lt;cxxabi.h&gt; <em> abi::<span class="underline">cxa_demangle 44 #endif </span></em></p> <p> replace line 42 with </p> <table class="wiki"> <tr>#if defined <span class="underline">GNUC</span> <td> (defined(<span class="underline">SUNPRO_CC) &amp;&amp; </span>SUNPRO_CC_COMPAT!=5) </td></tr></table> <p> 154:#if defined(_MSC_VER) 155: std::string ret = data_-&gt;name(); 156: std::string::size_type pos_beg = ret.find(cvr_saver_name); 157: if (pos_beg == std::string::npos) { 158: return ret; 159: } </p> <p> replace line 154 with </p> <table class="wiki"> <tr>#if defined(_MSC_VER) <td> (defined(<span class="underline">SUNPRO_CC) &amp;&amp; (</span>SUNPRO_CC_COMPAT==5)) </td></tr></table> <p> in boost/type_index/detail/compile_time_type_info.hpp 120: #elif defined(<span class="underline">PRETTY_FUNCTION</span>) \ </p> <table class="wiki"> <tr>121: <td> defined(<span class="underline">GNUC</span>) \ </td></tr><tr>122: <td> (defined(<span class="underline">MWERKS</span>) &amp;&amp; (<span class="underline">MWERKS</span> &gt;= 0x3000)) \ </td></tr><tr>123: <td> (defined(<span class="underline">ICC) &amp;&amp; (</span>ICC &gt;= 600)) \ </td></tr><tr>124: <td> defined(<span class="underline">ghs</span>) \ </td></tr><tr>125: <td> defined(<span class="underline">DMC</span>) </td></tr></table> <table class="wiki"> <tr>insert "<td> defined(<span class="underline">SUNPRO_CC) \" into between line 121, 122 </span></td></tr></table> <blockquote> <table class="wiki"> <tr><td> defined(<span class="underline">GNUC</span>) \ </td></tr><tr><td> defined(<span class="underline">SUNPRO_CC) \ </span></td></tr><tr><td> (defined(<span class="underline">MWERKS</span>) &amp;&amp; (<span class="underline">MWERKS</span> &gt;= 0x3000)) \ </td></tr></table> </blockquote> <p> solution for problem 2: add -features=no%rtti for nortti test </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10571 Trac 1.4.3