OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 3146|回复: 3

大神们,,帮我看看 这怎么整啊!!!

[复制链接]

13

主题

25

帖子

0

精华

初级会员

Rank: 2

积分
117
金钱
117
注册时间
2015-4-4
在线时间
6 小时
发表于 2015-4-11 17:04:36 | 显示全部楼层 |阅读模式
5金钱
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(23): error:  #256: invalid redeclaration of type name "s32" (declared at line 470 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(27): error:  #256: invalid redeclaration of type name "sc32" (declared at line 474 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(31): error:  #256: invalid redeclaration of type name "vs32" (declared at line 478 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(35): error:  #256: invalid redeclaration of type name "vsc32" (declared at line 482 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(39): error:  #256: invalid redeclaration of type name "u32" (declared at line 486 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(43): error:  #256: invalid redeclaration of type name "uc32" (declared at line 490 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(47): error:  #256: invalid redeclaration of type name "vu32" (declared at line 494 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(51): error:  #256: invalid redeclaration of type name "vuc32" (declared at line 498 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(57): error:  #101: "RESET" has already been declared in the current scope
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(57): error:  #101: "SET" has already been declared in the current scope
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(57): error:  #256: invalid redeclaration of type name "FlagStatus" (declared at line 502 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(57): error:  #256: invalid redeclaration of type name "ITStatus" (declared at line 502 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(59): error:  #101: "DISABLE" has already been declared in the current scope
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(59): error:  #101: "ENABLE" has already been declared in the current scope
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(59): error:  #256: invalid redeclaration of type name "FunctionalState" (declared at line 504 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(62): error:  #101: "ERROR" has already been declared in the current scope
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(62): error:  #101: "SUCCESS" has already been declared in the current scope
D:\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(62): error:  #256: invalid redeclaration of type name "ErrorStatus" (declared at line 507 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_conf.h(147): warning:  #47-D: incompatible redefinition of macro "HSE_Value" (declared at line 511 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\cortexm3_macro.h(30): error:  #55: too many arguments in macro invocation
D:\ARM\Inc\ST\STM32F10x\cortexm3_macro.h(30): error:  #79: expected a type specifier
D:\ARM\Inc\ST\STM32F10x\cortexm3_macro.h(31): error:  #55: too many arguments in macro invocation
D:\ARM\Inc\ST\STM32F10x\cortexm3_macro.h(31): error:  #79: expected a type specifier
D:\ARM\Inc\ST\STM32F10x\cortexm3_macro.h(32): error:  #55: too many arguments in macro invocation
D:\ARM\Inc\ST\STM32F10x\cortexm3_macro.h(32): error:  #79: expected a type specifier
D:\ARM\Inc\ST\STM32F10x\stm32f10x_map.h(58): error:  #256: invalid redeclaration of type name "ADC_TypeDef" (declared at line 547 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_map.h(154): error:  #256: invalid redeclaration of type name "BKP_TypeDef" (declared at line 646 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_map.h(163): error:  #256: invalid redeclaration of type name "CAN_TxMailBox_TypeDef" (declared at line 658 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_map.h(171): error:  #256: invalid redeclaration of type name "CAN_FIFOMailBox_TypeDef" (declared at line 670 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_map.h(177): error:  #256: invalid redeclaration of type name "CAN_FilterRegister_TypeDef" (declared at line 680 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
D:\ARM\Inc\ST\STM32F10x\stm32f10x_map.h(203): error:  #256: invalid redeclaration of type name "CAN_TypeDef" (declared at line 714 of "D:\ARM\Inc\ST\STM32F10x\stm32f10x.h")
..\L298N\l298n.c - 30 Error(s), 1 Warning(s).

最佳答案

查看完整内容[请看2#楼]

头文件的问题,保持库函数与你的编译程序后编译器上的.h版本一致。
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

1

主题

8

帖子

0

精华

新手上路

积分
32
金钱
32
注册时间
2015-4-8
在线时间
0 小时
发表于 2015-4-11 17:04:37 | 显示全部楼层
头文件的问题,保持库函数与你的编译程序后编译器上的.h版本一致。
回复

使用道具 举报

13

主题

25

帖子

0

精华

初级会员

Rank: 2

积分
117
金钱
117
注册时间
2015-4-4
在线时间
6 小时
 楼主| 发表于 2015-4-11 18:23:48 | 显示全部楼层
恩恩   好了,,谢谢!!!
回复

使用道具 举报

5

主题

19

帖子

0

精华

初级会员

Rank: 2

积分
78
金钱
78
注册时间
2015-8-25
在线时间
18 小时
发表于 2017-8-4 15:03:05 | 显示全部楼层
请问楼主,你这个问题是如何解决的啊  我也遇到了这个问题,望赐教
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-4-20 05:54

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表