*.c
#include
#define LOG_TAG "LOG_TEST"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__);
Android.mk
LOCAL_SHARED_LIBRARIES := libcutils
CASE2: NDK
*.c
#include
#define LOG_TAG "LOG_TEST"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__);
Android.mk
LOCAL_LDLIBS := -llog
댓글 없음:
댓글 쓰기