NDK 16 rc2 (memcpy vs. wmemcpy)

Hi,

I issued a problem with the latest NDK (16 rc2)

[arm64-v8a] Compile        : cocos2dx_internal_static <= ccFPSImages.c
  ../../cocos2d/cocos/audio/android/mp3reader.cpp:229:17: error: use of undeclared identifier 'memcmp'; did you mean 'wmemcmp'?
          if (memcmp("ID3", id3header, 3)) {
              ^~~~~~
              wmemcmp
/<PATH>/Android/ndk-bundle/sysroot/usr/include/wchar.h:149:5: note: 'wmemcmp' declared here
  int wmemcmp(const wchar_t* __lhs, const wchar_t* __rhs, size_t __n);
  ^

Is this an issue in the NDK or should cocos2d-x be fixed?

1 Like