文章目录
  1. 1. 编译door-new4.0报错

编译door-new4.0报错

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
root@ubuntu:/opt/door-new# make
make -C ./ -f /opt/door-new/Makefile.build
make[1]: Entering directory `/opt/door-new'
make -C input -f /opt/door-new/Makefile.build
make[2]: Entering directory `/opt/door-new/input'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.butn.o.d -c -o butn.o butn.c
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.device.o.d -c -o device.o device.c
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.menci.o.d -c -o menci.o menci.c
arm-linux-ld -r -o built-in.o butn.o device.o menci.o
make[2]: Leaving directory `/opt/door-new/input'
make -C output -f /opt/door-new/Makefile.build
make[2]: Entering directory `/opt/door-new/output'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.beep.o.d -c -o beep.o beep.c
arm-linux-ld -r -o built-in.o beep.o
make[2]: Leaving directory `/opt/door-new/output'
make -C gpio -f /opt/door-new/Makefile.build
make[2]: Entering directory `/opt/door-new/gpio'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.gpio_manager.o.d -c -o gpio_manager.o gpio_manager.c
gpio_manager.c: In function 'IOinit':
gpio_manager.c:154: warning: implicit declaration of function 'IODevInit'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.gpioctl.o.d -c -o gpioctl.o gpioctl.c
gpioctl.c: In function 'IOctl':
gpioctl.c:45: warning: implicit declaration of function 'ioctl'
gpioctl.c:46: warning: no return statement in function returning non-void
gpioctl.c: In function 'GPIO_exti':
gpioctl.c:69: warning: control reaches end of non-void function
gpioctl.c: In function 'GPIO_init':
gpioctl.c:59: warning: control reaches end of non-void function
gpioctl.c: At top level:
gpioctl.c:38: warning: 'IOctl' defined but not used
arm-linux-ld -r -o built-in.o gpio_manager.o gpioctl.o
make[2]: Leaving directory `/opt/door-new/gpio'
make -C debug -f /opt/door-new/Makefile.build
make[2]: Entering directory `/opt/door-new/debug'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.debug_manager.o.d -c -o debug_manager.o debug_manager.c
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.stdout.o.d -c -o stdout.o stdout.c
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.netprint.o.d -c -o netprint.o netprint.c
arm-linux-ld -r -o built-in.o debug_manager.o stdout.o netprint.o
make[2]: Leaving directory `/opt/door-new/debug'
make -C net -f /opt/door-new/Makefile.build
make[2]: Entering directory `/opt/door-new/net'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.net_manager.o.d -c -o net_manager.o net_manager.c
net_manager.c: In function 'SendData':
net_manager.c:598: warning: implicit declaration of function 'usleep'
net_manager.c: In function 'AddNetDevice':
net_manager.c:609: warning: unused variable 'i'
net_manager.c: At top level:
net_manager.c:6: warning: 'g_ptDefaultTcpOpr' defined but not used
net_manager.c: In function 'ReadCallback':
net_manager.c:386: warning: 'i' may be used uninitialized in this function
net_manager.c: In function 'UDPReadCallback':
net_manager.c:314: warning: 'i' may be used uninitialized in this function
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.tcp_opr.o.d -c -o tcp_opr.o tcp_opr.c
tcp_opr.c: In function 'Thread_read':
tcp_opr.c:39: warning: unused variable 'ptr'
tcp_opr.c:37: warning: unused variable 'data_len'
tcp_opr.c:36: warning: unused variable 'remaining'
tcp_opr.c: In function 'Thread_listen':
tcp_opr.c:138: warning: format '%d' expects type 'int', but argument 3 has type 'void *'
tcp_opr.c: In function 'Thread_UDPread':
tcp_opr.c:210: warning: unused variable 'ptr'
tcp_opr.c:208: warning: unused variable 'data_len'
tcp_opr.c:207: warning: unused variable 'remaining'
tcp_opr.c: In function 'SnlUdpServerInit':
tcp_opr.c:503: warning: unused variable 'ph_len'
tcp_opr.c:503: warning: unused variable 'flags'
tcp_opr.c: In function 'SnlUdpClientInit':
tcp_opr.c:527: warning: unused variable 'ph_len'
tcp_opr.c:527: warning: unused variable 'flags'
tcp_opr.c: In function 'SnlUdpSend':
tcp_opr.c:564: warning: unused variable 'ph_len'
tcp_opr.c:564: warning: unused variable 'flags'
arm-linux-ld -r -o built-in.o net_manager.o tcp_opr.o
make[2]: Leaving directory `/opt/door-new/net'
make -C store -f /opt/door-new/Makefile.build
make[2]: Entering directory `/opt/door-new/store'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.sqlite.o.d -c -o sqlite.o sqlite.c
sqlite.c: In function 'sql_open':
sqlite.c:23: warning: passing argument 2 of 'sqlite3_open' from incompatible pointer type
/opt/install/include/sqlite3.h:2371: note: expected 'struct sqlite3 **' but argument is of type 'struct sqlite3 *'
sqlite.c: In function 'sql_delete_index':
sqlite.c:188: warning: unused variable 'sql'
sqlite.c:189: warning: no return statement in function returning non-void
sqlite.c: In function 'sql_data_analyze':
sqlite.c:213: warning: unused variable 'sql'
sqlite.c:214: warning: no return statement in function returning non-void
sqlite.c: In function 'sql_Select_user_Sn':
sqlite.c:444: warning: passing argument 3 of 'sqlite3_exec' from incompatible pointer type
/opt/install/include/sqlite3.h:360: note: expected 'int (*)(void *, int, char **, char **)' but argument is of type 'void (*)(void *, int, char **, char **)'
sqlite.c:507:29: warning: backslash and newline separated by space
sqlite.c:508:28: warning: backslash and newline separated by space
sqlite.c: In function 'sql_Select_Dev':
sqlite.c:652: warning: passing argument 3 of 'sqlite3_exec' from incompatible pointer type
/opt/install/include/sqlite3.h:360: note: expected 'int (*)(void *, int, char **, char **)' but argument is of type 'void (*)(void *, int, char **, char **)'
sqlite.c: In function 'sql_Select_AllDev':
sqlite.c:684: warning: passing argument 3 of 'sqlite3_exec' from incompatible pointer type
/opt/install/include/sqlite3.h:360: note: expected 'int (*)(void *, int, char **, char **)' but argument is of type 'void (*)(void *, int, char **, char **)'
sqlite.c: In function 'sqlSelectMaxid':
sqlite.c:718: warning: passing argument 3 of 'sqlite3_exec' from incompatible pointer type
/opt/install/include/sqlite3.h:360: note: expected 'int (*)(void *, int, char **, char **)' but argument is of type 'void (*)(void *, int, char **, char **)'
sqlite.c: In function 'SqlStoreInit':
sqlite.c:829: warning: implicit declaration of function 'RegisterSqlStoreOpr'
sqlite.c: In function 'sql_db_clean':
sqlite.c:228: warning: control reaches end of non-void function
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.store.o.d -c -o store.o store.c
store.c: In function 'FileStoreInit':
store.c:154: warning: implicit declaration of function 'RegisterFileStoreOpr'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.store_manager.o.d -c -o store_manager.o store_manager.c
store_manager.c: In function 'GetFileOpr':
store_manager.c:78: warning: initialization from incompatible pointer type
store_manager.c:84: warning: return from incompatible pointer type
store_manager.c: In function 'open_sqlite3':
store_manager.c:103: warning: passing argument 2 of 'Tmp->sql_open' from incompatible pointer type
store_manager.c:103: note: expected 'struct sqlite3 *' but argument is of type 'struct sqlite3 **'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.para.o.d -c -o para.o para.c
para.c: In function 'RegisterSysParaOpr':
para.c:13: warning: unused variable 'ptTmp'
para.c: In function 'ParaInit':
para.c:38: warning: implicit declaration of function 'GetSysPara'
para.c:75: warning: implicit declaration of function 'SetSysPara'
para.c:30: warning: unused variable 'j'
para.c:30: warning: unused variable 'i'
para.c: In function 'GetSysPara':
para.c:90: warning: implicit declaration of function 'GetFileOpr'
para.c:90: warning: assignment makes pointer from integer without a cast
para.c:92: warning: passing argument 2 of 'FileStore->ReadFile' from incompatible pointer type
para.c:92: note: expected 'char *' but argument is of type 'PT_Sys_Para_Opr'
para.c: In function 'SetSysPara':
para.c:99: warning: assignment makes pointer from integer without a cast
para.c:101: warning: passing argument 2 of 'FileStore->WriteFile' from incompatible pointer type
para.c:101: note: expected 'char *' but argument is of type 'PT_Sys_Para_Opr'
para.c: In function 'ParaInit':
para.c:79: warning: control reaches end of non-void function
arm-linux-ld -r -o built-in.o sqlite.o store.o store_manager.o para.o
make[2]: Leaving directory `/opt/door-new/store'
make -C timer -f /opt/door-new/Makefile.build
make[2]: Entering directory `/opt/door-new/timer'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.rtctime.o.d -c -o rtctime.o rtctime.c
rtctime.c: In function 'RtcTimeInit':
rtctime.c:50: warning: implicit declaration of function 'malloc'
rtctime.c:50: warning: incompatible implicit declaration of built-in function 'malloc'
rtctime.c: In function 'gettime':
rtctime.c:93: warning: unused variable 'temer1'
rtctime.c:89: warning: unused variable 'wday'
rtctime.c: In function 'Efficacy_time':
rtctime.c:152: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
/usr/local/arm/4.4.3/bin/../arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:339: note: expected 'char * __restrict__' but argument is of type 'unsigned char *'
rtctime.c:154: warning: pointer targets in passing argument 1 of 'SetSystemTime' differ in signedness
rtctime.c:58: note: expected 'char *' but argument is of type 'unsigned char *'
rtctime.c:143: warning: unused variable 'DataTemp'
rtctime.c: In function 'FM_Read_Time':
rtctime.c:164: warning: pointer targets in passing argument 1 of 'gettime' differ in signedness
rtctime.c:87: note: expected 'char *' but argument is of type 'unsigned char *'
rtctime.c: In function 'gettime':
rtctime.c:118: warning: control reaches end of non-void function
rtctime.c: In function 'RtcTimeInit':
rtctime.c:56: warning: control reaches end of non-void function
rtctime.c: At top level:
rtctime.c:133: warning: 'HEX_BCD' defined but not used
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.timer.o.d -c -o timer.o timer.c
timer.c: In function 'signal_handler':
timer.c:14: warning: unused variable 'i'
timer.c:14: warning: unused variable 'j'
timer.c: In function 'time_create':
timer.c:48: warning: implicit declaration of function 'memset'
timer.c:48: warning: incompatible implicit declaration of built-in function 'memset'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.holidaygroup.o.d -c -o holidaygroup.o holidaygroup.c
holidaygroup.c: In function 'Down_Holiday_Group':
holidaygroup.c:31: warning: implicit declaration of function 'Write_HoliPara'
holidaygroup.c:35: warning: implicit declaration of function 'free'
holidaygroup.c:35: warning: incompatible implicit declaration of built-in function 'free'
holidaygroup.c:44: warning: implicit declaration of function 'Read_HoliPara'
holidaygroup.c:55: warning: incompatible implicit declaration of built-in function 'free'
holidaygroup.c:64: warning: incompatible implicit declaration of built-in function 'free'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.timergroup.o.d -c -o timergroup.o timergroup.c
timergroup.c: In function 'Down_Time_Group':
timergroup.c:65: warning: implicit declaration of function 'Write_TimePara'
timergroup.c:69: warning: implicit declaration of function 'free'
timergroup.c:69: warning: incompatible implicit declaration of built-in function 'free'
timergroup.c:82: warning: incompatible implicit declaration of built-in function 'free'
timergroup.c:85: warning: implicit declaration of function 'Read_TimePara'
timergroup.c:129: warning: incompatible implicit declaration of built-in function 'free'
arm-linux-ld -r -o built-in.o rtctime.o timer.o holidaygroup.o timergroup.o
make[2]: Leaving directory `/opt/door-new/timer'
make -C communication -f /opt/door-new/Makefile.build
make[2]: Entering directory `/opt/door-new/communication'
arm-linux-gcc -Wall -O2 -g -I /opt/door-new/include -Wp,-MD,.communication.o.d -c -o communication.o communication.c
communication.c: In function 'addIR':
communication.c:51: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/local/arm/4.4.3/bin/../arm-none-linux-gnueabi//sys-root/usr/include/string.h:242: note: expected 'const char *' but argument is of type 'unsigned char *'
communication.c:52: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/local/arm/4.4.3/bin/../arm-none-linux-gnueabi//sys-root/usr/include/string.h:242: note: expected 'const char *' but argument is of type 'unsigned char *'
communication.c: In function 'saveIRToGateway':
communication.c:121: warning: pointer targets in passing argument 3 of 'addIR' differ in signedness
communication.c:45: note: expected 'unsigned char *' but argument is of type 'char *'
communication.c:122: warning: implicit declaration of function 'usleep'
communication.c:123: warning: pointer targets in passing argument 3 of 'addIR' differ in signedness
communication.c:45: note: expected 'unsigned char *' but argument is of type 'char *'
communication.c:125: warning: pointer targets in passing argument 3 of 'addIR' differ in signedness
communication.c:45: note: expected 'unsigned char *' but argument is of type 'char *'
communication.c:127: warning: pointer targets in passing argument 3 of 'addIR' differ in signedness
communication.c:45: note: expected 'unsigned char *' but argument is of type 'char *'
communication.c:129: warning: pointer targets in passing argument 3 of 'addIR' differ in signedness
communication.c:45: note: expected 'unsigned char *' but argument is of type 'char *'
communication.c:131: warning: pointer targets in passing argument 3 of 'addIR' differ in signedness
communication.c:45: note: expected 'unsigned char *' but argument is of type 'char *'
communication.c:133: warning: pointer targets in passing argument 3 of 'addIR' differ in signedness
communication.c:45: note: expected 'unsigned char *' but argument is of type 'char *'
communication.c: In function 'savdCommonIRCommand':
communication.c:157: warning: implicit declaration of function 'GetDefultSysParaOpr'
communication.c:157: warning: assignment makes pointer from integer without a cast
communication.c:163: warning: implicit declaration of function 'GetNetOpr'
communication.c:163: warning: assignment makes pointer from integer without a cast
communication.c:150: warning: unused variable 'len'
communication.c:147: warning: unused variable 'PCTx'
communication.c:143: warning: unused variable 'DataTemp'
communication.c:142: warning: unused variable 'i'
communication.c:141: warning: unused variable 'Temp'
communication.c: In function 'TcpSendData':
communication.c:236: warning: pointer targets in passing argument 2 of 'SendData' differ in signedness
/opt/door-new/include/net_manager.h:107: note: expected 'char *' but argument is of type 'unsigned char *'
communication.c:215: warning: unused variable 'ptTmp'
communication.c: In function 'ReadDataRecord':
communication.c:288: warning: assignment from incompatible pointer type
communication.c:289: warning: assignment from incompatible pointer type
communication.c: In function 'ReadNetBuf':
communication.c:317: warning: implicit declaration of function 'GetNetMemDataFull'
communication.c:317: warning: assignment makes pointer from integer without a cast
communication.c:313: warning: unused variable 'i'
communication.c: In function 'Rx_Tcp':
communication.c:385: warning: implicit declaration of function 'GetDataNum'
communication.c: In function 'UdpTx':
communication.c:523: warning: implicit declaration of function 'UdpSend'
communication.c: In function 'FindAllDev':
communication.c:584: warning: assignment from incompatible pointer type
communication.c: In function 'FindDev':
communication.c:625: warning: assignment from incompatible pointer type
communication.c: In function 'FindDevNum':
communication.c:668: warning: assignment from incompatible pointer type
communication.c: In function 'RX_PC_Info_Process':
communication.c:861: warning: pointer targets in initialization differ in signedness
communication.c:882: warning: assignment makes pointer from integer without a cast
communication.c:904: warning: assignment makes pointer from integer without a cast
communication.c:915: warning: assignment makes pointer from integer without a cast
communication.c:979: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
/usr/local/arm/4.4.3/bin/../arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:339: note: expected 'char * __restrict__' but argument is of type 'unsigned char *'
communication.c:979: warning: pointer targets in passing argument 2 of 'sprintf' differ in signedness
/usr/local/arm/4.4.3/bin/../arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:339: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *'
communication.c:1019: warning: pointer targets in passing argument 1 of 'UdpSendWay' differ in signedness
/opt/door-new/include/net_manager.h:108: note: expected 'char *' but argument is of type 'unsigned char *'
communication.c:1019: warning: pointer targets in passing argument 3 of 'UdpSendWay' differ in signedness
/opt/door-new/include/net_manager.h:108: note: expected 'char *' but argument is of type 'unsigned char *'
communication.c:1033: warning: pointer targets in passing argument 1 of 'UdpSendWay' differ in signedness
/opt/door-new/include/net_manager.h:108: note: expected 'char *' but argument is of type 'unsigned char *'
communication.c:1033: warning: pointer targets in passing argument 3 of 'UdpSendWay' differ in signedness
/opt/door-new/include/net_manager.h:108: note: expected 'char *' but argument is of type 'unsigned char *'
communication.c:1045: warning: pointer targets in passing argument 1 of 'UdpSendWay' differ in signedness
/opt/door-new/include/net_manager.h:108: note: expected 'char *' but argument is of type 'unsigned char *'
communication.c:1045: warning: pointer targets in passing argument 3 of 'UdpSendWay' differ in signedness
/opt/door-new/include/net_manager.h:108: note: expected 'char *' but argument is of type 'unsigned char *'
communication.c:1059: warning: implicit declaration of function 'SetSysPara'
communication.c:1077: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
/usr/local/arm/4.4.3/bin/../arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:339: note: expected 'char * __restrict__' but argument is of type 'unsigned char *'
communication.c:1077: warning: pointer targets in passing argument 2 of 'sprintf' differ in signedness
/usr/local/arm/4.4.3/bin/../arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:339: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *'
communication.c:1083: warning: pointer targets in passing argument 1 of 'UdpSendWay' differ in signedness
/opt/door-new/include/net_manager.h:108: note: expected 'char *' but argument is of type 'unsigned char *'
communication.c:1083: warning: pointer targets in passing argument 3 of 'UdpSendWay' differ in signedness
/opt/door-new/include/net_manager.h:108: note: expected 'char *' but argument is of type 'unsigned char *'
communication.c:1084: warning: implicit declaration of function 'sleep'
communication.c:1774: warning: implicit declaration of function 'notifyServerGatewayInfoChange'
communication.c:2692: error: duplicate case value
communication.c:1856: error: previously used here
communication.c:874: warning: unused variable 'rpdata'
communication.c:873: warning: unused variable 'rp'
communication.c:872: warning: unused variable 'ptDevinfo'
communication.c:871: warning: unused variable 'Devinfo'
communication.c: In function 'RxZigbeeProcess':
communication.c:2816: warning: pointer targets in initialization differ in signedness
communication.c:2883: warning: pointer targets in assignment differ in signedness
communication.c:3498: warning: implicit declaration of function 'sync'
communication.c:2827: warning: unused variable 'ieee2'
communication.c:2827: warning: unused variable 'ieee'
communication.c:2826: warning: unused variable 'rpdata'
communication.c:2825: warning: unused variable 'rp'
communication.c:2821: warning: unused variable 'st'
communication.c:2816: warning: unused variable 'sql'
communication.c:2815: warning: unused variable 'sqltemp'
communication.c: In function 'RegGawyToServer':
communication.c:3790: warning: assignment makes pointer from integer without a cast
communication.c: At top level:
communication.c:3813: warning: conflicting types for 'notifyServerGatewayInfoChange'
communication.c:1774: note: previous implicit declaration of 'notifyServerGatewayInfoChange' was here
communication.c: In function 'notifyServerGatewayInfoChange':
communication.c:3818: warning: assignment makes pointer from integer without a cast
communication.c: In function 'Shake_hands':
communication.c:3846: warning: pointer targets in initialization differ in signedness
communication.c:3857: warning: assignment makes pointer from integer without a cast
communication.c:3864: warning: assignment makes pointer from integer without a cast
communication.c:3872: warning: implicit declaration of function 'gettime'
communication.c:3850: warning: unused variable 'len'
communication.c:3846: warning: unused variable 'sql'
communication.c:3845: warning: unused variable 'sqltemp'
communication.c: In function 'GetZllSN':
communication.c:3982: warning: implicit declaration of function 'close'
make[2]: *** [communication.o] Error 1
make[2]: Leaving directory `/opt/door-new/communication'
make[1]: *** [communication] Error 2
make[1]: Leaving directory `/opt/door-new'
make: *** [all] Error 2
root@ubuntu:/opt/door-new#

Tips error

1
2
272  communication.c:2692: error: duplicate case value
273 communication.c:1856: error: previously used here

1
#define ADDTIMERTASK          0X14

0x14被占用
修改为:

1
#define ADDTIMERTASK          0X15

仍会报错

添加Liugong代码后报错:

1
2
3
4
communication.c:2707: error: 'cmdBuf' undeclared (first use in this function)
communication.c:2707: error: (Each undeclared identifier is reported only once
communication.c:2707: error: for each function it appears in.)
communication.c:2723: error: 'REBOOT' undeclared (first use in this function)

改动:
door-new\include\communication.h
1.添加了:

1
#define REBOOT					0x16	 //定义REBOOT


2.在所在函数RX_PC_Info_Process头添加

1
char cmdBuf[25];  //date 命令

文章目录
  1. 1. 编译door-new4.0报错