Opened 9 years ago

Closed 9 years ago

#8497 closed Bugs (fixed)

lexical_cast doesn't compile with Android NDK toolchain

Reported by: viktor.govako@… Owned by: John Maddock
Milestone: Boost 1.54.0 Component: config
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description

Trying to compile lexical_cast with the Android NDK r8d.

#include <stdint.h> #include <boost/lexical_cast.hpp> #include <string>

int main() {

uint64_t x = 1; std::string s = boost::lexical_cast<std::string>(x); return 0;

}

Shows error in boost/detail/endian.hpp "The file boost/detail/endian.hpp needs to be set up for your CPU type."

Change History (4)

comment:1 by Antony Polukhin, 9 years ago

Component: lexical_castconfig
Milestone: To Be DeterminedBoost 1.54.0
Owner: changed from Antony Polukhin to John Maddock

<boost/detail/endian.hpp> is a part of Boost.Config (at least I think so).

comment:2 by John Maddock, 9 years ago

I'm not sure, but I think this duplicates https://svn.boost.org/trac/boost/ticket/7528, can you please check that the patch supplied there works for you?

comment:3 by vng@…, 9 years ago

Yes, the patch works for me. Is there any chance it will be included in the boost?

comment:4 by John Maddock, 9 years ago

Resolution: fixed
Status: newclosed

Yes it'll be in the next release.

Note: See TracTickets for help on using tickets.