Boost C++ Libraries: Ticket #8497: lexical_cast doesn't compile with Android NDK toolchain https://svn.boost.org/trac10/ticket/8497 <p> Trying to compile lexical_cast with the Android NDK r8d. </p> <p> #include &lt;stdint.h&gt; #include &lt;boost/lexical_cast.hpp&gt; #include &lt;string&gt; </p> <p> int main() { </p> <blockquote> <p> uint64_t x = 1; std::string s = boost::lexical_cast&lt;std::string&gt;(x); return 0; </p> </blockquote> <p> } </p> <p> Shows error in boost/detail/endian.hpp "The file boost/detail/endian.hpp needs to be set up for your CPU type." </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8497 Trac 1.4.3 Antony Polukhin Mon, 06 May 2013 16:59:15 GMT owner, component, milestone changed https://svn.boost.org/trac10/ticket/8497#comment:1 https://svn.boost.org/trac10/ticket/8497#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Antony Polukhin</span> to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">lexical_cast</span> → <span class="trac-field-new">config</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.54.0</span> </li> </ul> <p> <code>&lt;boost/detail/endian.hpp&gt;</code> is a part of Boost.Config (at least I think so). </p> Ticket John Maddock Mon, 06 May 2013 17:54:56 GMT <link>https://svn.boost.org/trac10/ticket/8497#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8497#comment:2</guid> <description> <p> I'm not sure, but I think this duplicates <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/7528"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/7528</a>, can you please check that the patch supplied there works for you? </p> </description> <category>Ticket</category> </item> <item> <author>vng@…</author> <pubDate>Mon, 06 May 2013 18:18:01 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8497#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8497#comment:3</guid> <description> <p> Yes, the patch works for me. Is there any chance it will be included in the boost? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 07 May 2013 07:50:57 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8497#comment:4 https://svn.boost.org/trac10/ticket/8497#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> Yes it'll be in the next release. </p> Ticket