2016-10-03 81 views
2

升级到NDK R13,下面无辜的cpp文件后:NDK R13,-fexceptions -Wall - >警告:冲突与早先的声明

#include <unordered_map> 

用命令: ndk-build NDK_TOOLCHAIN_VERSION=4.9 APP_CPPFLAGS=-fexceptions APP_CFLAGS=-Wall APP_STL=c++_static

将导致警告:

<built-in>: In function 'float abs(float)': 
<built-in>: warning: conflicts with previous declaration here [-Wattributes] 

自r12b以来出了什么问题?

回答

2

实际上,NDK中已经弃用了4.9工具链。切换到默认工具链(clang)可以解决问题。