【问题标题】:NDK compilation error: 'stod' was not declared in this scopeNDK 编译错误:“stod”未在此范围内声明
【发布时间】:2014-06-22 12:13:49
【问题描述】:

我知道这里可能存在重复: error: 'stod' was not declared in this scope 但我已经尝试过那里的建议。 我尝试在 Android NDK 中编译 C++ 应用程序。

我得到错误:

'stod' 没有在这个范围内声明

我在Application.mk 中启用了 C++ 11:

APP_ABI := x86 
APP_STL := gnustl_static
NDK_TOOLCHAIN_VERSION:= 4.8
APP_CPPFLAGS += -fexceptions -std=c++11 -fpermissive -frtti  -pthread

为了摆脱这个错误,我还应该做什么?

【问题讨论】:

    标签: android c++ android-ndk


    【解决方案1】:

    我猜您可能已经发现这不是当前 Android NDK (10) 的一部分。 C++11 库中缺少几个部分,例如正则表达式功能和 to_string 等。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-05
      • 2011-10-08
      • 2011-01-31
      • 2021-05-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多