NDK 构建错误:命名空间'std'中的'string'未命名类型
ndk-build error: 'string' in namespace 'std' does not name a type
我对ndk构建(ndk-r9c(有问题
错误:
Common/LCXPlayerSocket.h:206:2: error: 'string' in namespace 'std' does not name a type
信息:
我的应用程序.mk
APP_MODULES := MyLib
APP_OPTIM := $(COMPTYPE)
APP_ABI := $(TYPE_ARMEABI)
APP_PLATFORM := $(PLATFORM)
APP_STL := $(STL_VERSION)
我的配置.bat
set TYPE_ARMEABI=armeabi-v7a
set PLATFORM=android-8
set STL_VERSION=stlport_static //does not working on <gnustl_static>
Src文件:
include <string.h>
class abc
{
protected:
std::string m_buffer; //line 206
}
错误已被解决:
thx@紫罗兰长颈鹿
@ndtran:从.bat中删除集合STL_VERSION。将其添加到Application.mk:APP_STL:=gnustl_static–Violet Giraffe 6分钟前
谢谢你的帮助。[D]
用include <string>
替换include <string.h>
相关文章:
- 迭代和比较映射<字符串、矢量<string>> c++ 中的值
- 将"std::string {aka std::basic_string}"赋值中的不兼容类型<char>
- 为什么这个程序接受整数和字母数字输入并打印它们? C++ 中的 std::string 也采用整数值吗?
- <string> 结构中的矢量无法正常工作
- 为什么一个表达式中的 std::string 连接给出的结果与逐个字符不同的结果?
- 比较存储在 std::string 中的数据中的字节数
- C++中的"string()+char"
- 连接到MySQL时如何修复xdev C++ api中的'string too long'错误
- android-ndk-r6-crystax-2 错误:命名空间'std'中的'string'未命名类型
- 命名空间中的"string is not a type"
- 使用C++中的String To Class Lookup表来实例化类
- 如何调用返回char* (Java中的String和c++中的char*)的方法
- 将指针整数(int**)转换为c中的String
- GetFunctionPointerForDelegate将委托中的String^参数转换成什么?
- c++中的string类可以有多大?
- 如何在C或c++中获得与Java中的toLowerCase或Python中的string.lower()相同的结果
- 从c++中的string继承
- c++中的String *[]转换为c#中的String[]
- NDK 构建错误:命名空间'std'中的'string'未命名类型
- 将二进制数据转换为ASCII等效,而不使用Arduino中的String对象