android-ndkcocos2d-x-3.0

audio/android/cutils/bitops.h:65:15: error: use of undeclared identifier 'ffs'


I ndk-build my project for "APP_ABI := X86" , with cocos2d-x 3.14.1, but getting the error log:

cocos2d/cocos/audio/android/../../audio/android/cutils/bitops.h:65:15: error: use of undeclared identifier 'ffs'

Do you saw it and how to fix ?


Solution

  • https://github.com/android-ndk/ndk/issues/439

    Update to the latest NDK and it should work.