...
#include <android/log.h>
...
#define LOG_TAG "barabashka" // text for log tag
...
__android_log_print(ANDROID_LOG_INFO, LOG_TAG,
"resolving function %s, id %d", symbols[f_id].name, f_id);
...
You can check android/log.h for more logging function definitions:
build/platforms/android-1.5/common/include/android/log.h
You need to add '-llog' to your linker options. I'm not sure how to do
this properly, since I don't use NDK makefiles, but the log library is
along libc and others.
> thanks!
i tried this and got link errors -- how does one add liblog.so to the build?
thanks!
--jason.software.particle