How to use memset_s in Android NDK? -


android.ndk {         modulename = "hello-jni"         stl = "stlport_static"         cflags.add("-std=iso9899:2011") // have used "-std=c11"         ldlibs.addall(["android", "log"])     } 

i still cannot see memset_s in jni c code. says undefined reference.

in c code have included string.h, stdlib.h, , stdio.h ,

#define stdc_want_lib_ext1 1 

still cannot rid of error undefined reference error.

if add flag allow_undefined_symbols compiles when ever call function memset_s crashes.

the questions ask follows :

1) in of android ndk tool chains can c11 memset_s api?

2) other question have how can change default tool chain android in latest android studio experimental gradle alpha5?

this functionally of "annex k" in c11 standard optional. not implemented in many c libraries.

you can test conformance annex k means of macro __stdc_lib_ext1__.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -