首页 > 代码库 > 编译C++,找不到头文件(fatal error: string: No such file or directory)

编译C++,找不到头文件(fatal error: string: No such file or directory)

在androidproject中编译C++时,找不到头文件,报错例如以下:

fatal error: string: No such file or directory

解决该问题须要在Android.mk文件里:

LOCAL_C_INCLUDES :=  \
                bionic \
                external/stlport/stlport