How to use shared memory in android native code? -
i porting existing linux application android. application using shared memory api's shm_open()
etc.
checking bionic in android source, see these api's not supported. hence linking error during build.
external/l2/avbtp.c:138: error: undefined reference 'shm_open' external/l2/avbtp.c:151: error: undefined reference 'shm_unlink' external/l2/avbtp.c:186: error: undefined reference 'shm_unlink'
how resolve correctly?
android intentionally doesn't provide sysv ipc. try avoid using of shared memory or, if want, examples of using ashmem
.
Comments
Post a Comment