打印
[AVR单片机]

请问出现这些错误的原因,是设置错误吗?

[复制链接]
1535|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
啊啊哈|  楼主 | 2007-8-21 20:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
../main.c:22: warning: this decimal constant is unsigned only in ISO C90
../main.c: In function `in_car_pwm_send':
../main.c:63: error: 'for' loop initial declaration used outside C99 mode
../main.c:68: error: redefinition of 'x'
../main.c:63: error: previous definition of 'x' was here
../main.c:68: error: 'for' loop initial declaration used outside C99 mode
../main.c:73: error: redefinition of 'x'
../main.c:68: error: previous definition of 'x' was here
../main.c:73: error: 'for' loop initial declaration used outside C99 mode
../main.c:79: error: redefinition of 'x'
../main.c:73: error: previous definition of 'x' was here
../main.c:79: error: 'for' loop initial declaration used outside C99 mode
../main.c:84: error: redefinition of 'x'
../main.c:79: error: previous definition of 'x' was here
../main.c:84: error: 'for' loop initial declaration used outside C99 mode
../main.c:89: error: redefinition of 'x'
../main.c:84: error: previous definition of 'x' was here
../main.c:89: error: 'for' loop initial declaration used outside C99 mode
../main.c:94: error: redefinition of 'x'
../main.c:89: error: previous definition of 'x' was here
../main.c:94: error: 'for' loop initial declaration used outside C99 mode
../main.c: In function `out_car_pwm_send':
../main.c:116: error: 'for' loop initial declaration used outside C99 mode
../main.c:121: error: redefinition of 'x'
../main.c:116: error: previous definition of 'x' was here
../main.c:121: error: 'for' loop initial declaration used outside C99 mode
../main.c:127: error: redefinition of 'x'
../main.c:121: error: previous definition of 'x' was here
../main.c:127: error: 'for' loop initial declaration used outside C99 mode
../main.c:133: error: redefinition of 'x'
../main.c:127: error: previous definition of 'x' was here
../main.c:133: error: 'for' loop initial declaration used outside C99 mode
../main.c:138: error: redefinition of 'x'
../main.c:133: error: previous definition of 'x' was here
../main.c:138: error: 'for' loop initial declaration used outside C99 mode
../main.c:143: error: redefinition of 'x'
../main.c:138: error: previous definition of 'x' was here
../main.c:143: error: 'for' loop initial declaration used outside C99 mode
../main.c:149: error: redefinition of 'x'
../main.c:143: error: previous definition of 'x' was here
../main.c:149: error: 'for' loop initial declaration used outside C99 mode
../main.c: In function `eeprom_write_3_byte':
../main.c:179: warning: passing arg 1 of `eeprom_write_byte' makes pointer from integer without a cast
../main.c:181: warning: passing arg 1 of `eeprom_write_byte' makes pointer from integer without a cast
../main.c:183: warning: passing arg 1 of `eeprom_write_byte' makes pointer from integer without a cast
../main.c: In function `write_eeprom':
../main.c:192: error: 'for' loop initial declaration used outside C99 mode
../main.c:198: warning: no return statement in function returning non-void
../main.c: In function `check':
../main.c:349: error: 'for' loop initial declaration used outside C99 mode
../main.c:361: warning: no return statement in function returning non-void
../main.c: In function `eeprom_read_3_byte':
../main.c:370: error: 'for' loop initial declaration used outside C99 mode
../main.c:374: warning: passing arg 1 of `eeprom_read_byte' makes pointer from integer without a cast
../main.c: In function `read_eeprom':
../main.c:385: error: 'for' loop initial declaration used outside C99 mode
../main.c:387: warning: array subscript has type `char'
../main.c: In function `open_door':
../main.c:401: error: 'for' loop initial declaration used outside C99 mode
../main.c:407: error: redefinition of 'x'
../main.c:401: error: previous definition of 'x' was here
../main.c:407: error: 'for' loop initial declaration used outside C99 mode
../main.c:412: error: redefinition of 'x'
../main.c:407: error: previous definition of 'x' was here
../main.c:412: error: 'for' loop initial declaration used outside C99 mode
../main.c: In function `close_door':
../main.c:427: error: 'for' loop initial declaration used outside C99 mode
../main.c:432: error: redefinition of 'x'
../main.c:427: error: previous definition of 'x' was here
../main.c:432: error: 'for' loop initial declaration used outside C99 mode
make: *** [main.o] Error 1
Build failed with 54 errors and 8 warnings...

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

25

帖子

1

粉丝