我的ndk-build有问题( ndk-r9c )
错误:
Common/LCXPlayerSocket.h:206:2: error: 'string' in namespace 'std' does not name a type
的信息:
我的Application.mk
APP_MODULES := MyLib
APP_OPTIM := $(COMPTYPE)
APP_ABI := $(TYPE_ARMEABI)
APP_PLATFORM := $(PLATFORM)
APP_STL := $(STL_VERSION)
我的config.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 @Violet Giraffe
@ndtran:从你的.bat中删除set STL_VERSION。将此添加到 Application.mk:APP_STL:= gnustl_static - Violet Giraffe 6分钟前
谢谢你的帮助。 [d]
答案 0 :(得分:1)
将include <string.h>
替换为include <string>