根据question,我尝试按以下方式执行:
#include <android/log.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#define TAG "mylog"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__)
uint64_t value = 9999999999;
LOGD("test print uint64_t: %" PRIu64 "\n", value);
但是,我得到的错误如下:
error: expected ')' before 'PRIu64'
LOGD("test print uint64_t: %" PRIu64 "\n", value);
如何在Android中打印uint64_t?