小编pra*_*eep的帖子

错误:声明与范围内已存在的 using 声明的目标冲突

我是 android 构建系统的新手,在 MAC 操作系统中构建时遇到以下错误。请帮助我使构建成功。

In file included from external/libcxx/src/any.cpp:10:
In file included from external/libcxx/include/experimental/any:84:

external/libcxx/include/cstdlib:167:44: error: declaration conflicts with target of using declaration already in scope
inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT {return  labs(__x);}
                                           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:115:44: note: target of using declaration

inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT 

{return  labs(__x);}
                                           ^

external/libcxx/include/cstdlib:135:9: note: using declaration

using ::abs;
        ^

external/libcxx/include/cstdlib:169:44: error: declaration conflicts with target of using declaration already in scope
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT …
Run Code Online (Sandbox Code Playgroud)

macos android android-build android-source

5
推荐指数
1
解决办法
6095
查看次数

标签 统计

android ×1

android-build ×1

android-source ×1

macos ×1