我在app_para.c和app_para.h里都没有定义key这个变量 居然出现重复定义的错误

2019-10-11 15:40发布


Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIAR prjDebugObjat24c512.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjatt7022e.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjsp.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjsp_key.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjsp_lcd.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjsp_led.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjsp_mem.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjsp_switching.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjsp_usart.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjec20.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjlcd_para.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjlight_time_cal.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjmain.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjmb85rc16.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjmy_queue.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjmye_string.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObj x8025.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjsst25vf080b.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObjstm32f10x_it.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObj ask_cycle.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObj ask_init.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObj ask_lcd.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObj ask_light.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObj ask_network.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObj ask_prtl.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObj ask_rs232.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObj ask_rs485.o"
Error[Li006]: duplicate definitions for "key"; in "E:ProjectIARprjDebugObjapp_para.o", and "E:ProjectIARprjDebugObj ask_updata.o"



友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
5条回答
来俩不甜的
1楼-- · 2019-10-11 16:43
一般是定义到头文件里了
沧海
2楼-- · 2019-10-11 20:04
重复定义了。 你是想定义一个全局变量把?在.h 文件里加个extern 申明外部变量。
机械式teli
3楼-- · 2019-10-12 00:18
 精彩回答 2  元偷偷看……
来俩不甜的
4楼-- · 2019-10-12 06:04
app_para。h 里找找,可能是编译失败导致查找不到的
tongjinlv
5楼-- · 2019-10-12 11:00

一周热门 更多>