I start with C / C ++ and Android NDK, and I have a problem creating my own library. My code compiles using MinGW on a CDT, but when I write the same code in a JNI file, an error occurs.
My code is:
int n = 7; int positions[n]; int final_order[n]; memcpy(positions, final_order,sizeof(final_order));
The plugin shows me:
Invalid arguments 'Candidates are: void * memcpy(void *, const void *, ?)'
This title is from MinGW on the CDT:
_CRTIMP void* __cdecl __MINGW_NOTHROW memcpy (void*, const void*, size_t);
This is the title with the Android NDK:
extern void* memcpy(void *, const void *, size_t);
c android android-ndk
Ricardo
source share