本文共 484 字,大约阅读时间需要 1 分钟。
Android build error:
frameworks/native/services/inputflinger/EventHub.cpp:34:9: error: 'LOG_TAG' macro redefined [-Werror,-Wmacro-redefined]#define LOG_TAG "EventHub" ^system/core/liblog/include/log/log.h:51:9: note: previous definition is here#define LOG_TAG NULL ^
AuthBlog:秋城
1.Use #undef
look this :#ifdef LOG_TAG#undef LOG_TAG#define LOG_TAG "EventHub"#endif
2.Change order
first : #define and after that : #include#define LOG_TAG "EventHub" ... #include
转载地址:http://kcluz.baihongyu.com/