博客
关于我
error: 'LOG_TAG' macro redefined
阅读量:417 次
发布时间:2019-03-06

本文共 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:秋城

Solution

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/

你可能感兴趣的文章
等和的分隔子集(DP)
查看>>
基础练习 十六进制转八进制(模拟)
查看>>
L - Large Division (大数, 同余)
查看>>
39. Combination Sum
查看>>
41. First Missing Positive
查看>>
80. Remove Duplicates from Sorted Array II
查看>>
83. Remove Duplicates from Sorted List
查看>>
410. Split Array Largest Sum
查看>>
Vue3发布半年我不学,摸鱼爽歪歪,哎~就是玩儿
查看>>
《实战java高并发程序设计》源码整理及读书笔记
查看>>
Java开源博客My-Blog(SpringBoot+Docker)系列文章
查看>>
程序员视角:鹿晗公布恋情是如何把微博搞炸的?
查看>>
Spring+SpringMVC+MyBatis+easyUI整合进阶篇(七)一次线上Mysql数据库崩溃事故的记录
查看>>
【JavaScript】动态原型模式创建对象 ||为何不能用字面量创建原型对象?
查看>>
ClickHouse源码笔记4:FilterBlockInputStream, 探寻where,having的实现
查看>>
Linux应用-线程操作
查看>>
多态体验,和探索爷爷类指针的多态性
查看>>
系统编程-进程间通信-无名管道
查看>>
记2020年初对SimpleGUI源码的阅读成果
查看>>
C语言实现面向对象方法学的GLib、GObject-初体验
查看>>