Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NDK use of undeclared identifier memcpy

My Android Studio got updated last friday and since then will refuse to compile my Android/NDK project, returning several errors about "use of undeclared identifier 'memcpy'" and "use of undeclared identifier 'memcmp'".

I've tried to do a clean install of Android Studio and all the Android SDK without any success. Several of my colleagues also had the update but can still compile.

Does anyone have any idea of what could be the problem ?

like image 321
Matthew Charlton Avatar asked Jun 12 '17 09:06

Matthew Charlton


Video Answer


1 Answers

I have the same problem too. But under the Studio's CodeInsight

enter image description here

I just add the following code, the problem can be solved.

#include <string.h>

like image 132
saisam Avatar answered Sep 22 '22 12:09

saisam