json: Error compile Android NDK error: 'strtof' is not a member of 'std'
hi, can you help me, this error occurs when it compile with Android NDK
error: 'strtof' is not a member of 'std'
return std::strtof(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
error: 'ERANGE' was not declared in this scope
if (reinterpret_cast<lexer_char_t*>(endptr) != m_cursor || errno == ERANGE)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 29 (15 by maintainers)
Links to this issue
Commits related to this issue
- added a note about different NDKs (see #219) — committed to nlohmann/json by nlohmann 8 years ago
I have no idea why but I needed this instead (this took me a few hours to figure out so hopefully it helps someone on Android using Gradle…):
I use CrystaX NDK and it compiles all fine for android.
Hi, @nlohmann , I tested the commit PR #222, when I am compiling in Android NDK, this error was solved: error: ‘ERANGE’ was not declared in this scope’‘’ But I have more errores: error: ‘strtof’ is not a member of ‘std’ error: ‘strtoll’ is not a member of ‘std’
I am using the Android NDK configuration, and doesn’t support those function c. Application.MK:
this commit of the repository #c0bb5a5 work fine for my Android project