I am writing a C program for use on the android command line. I haven't had any issues compiling until I started using message queues and including linux/msg.h (or sys/msg.h). I am not sure what the right library to link to is or even how to do it with Android.mk. I have been through as many questions as possible and no answer has seemed to work.
The exact errors that I'm getting:
- sys/msg.h: No such file or direcory
- implicit declaration of function 'msgget'
- implicit declaration of function 'msgsnd'
- implicit declaration of function 'msgrcv'
- implicit declaration of function 'msgctl'
Here is my Android.mk file:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := appX.c
LOCAL_MODULE := appX
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_LIBRARIES := libc
LOCAL_C_INCLUDES := $(LOCAL_PATH)
include $(BUILD_EXECUTABLE)
I really appreciate any help.