mardi 24 janvier 2017

NDK ambiguous 'log' error with c++_static

I'am building my cpp library using CMake and gradle on Android with Android Studio 2.2.3. I'am using c++_static as STL but I always obtain these errors:

error: reference to 'log' is ambiguous log(_A1 __lcpp_x) _NOEXCEPT {return log((double)__lcpp_x);}

note: candidate found by name lookup is 'log' log(_A1 __lcpp_x) _NOEXCEPT {return log((double)__lcpp_x);}
note: candidate found by name lookup is 'log' inline _LIBCPP_INLINE_VISIBILITY long double log(long double __lcpp_x) _NOEXCEPT {return logl(__lcpp_x);}
note: candidate found by name lookup is 'log' inline _LIBCPP_INLINE_VISIBILITY float       log(float __lcpp_x) _NOEXCEPT       {return logf(__lcpp_x);}
note: candidate found by name lookup is 'log' double  log(double);

for header: android-ndk-r13b/sources/cxx-stl/llvm-libc++/include/math.h .

How can I solve this issue?

Aucun commentaire:

Enregistrer un commentaire