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

2019-08-14 19:14发布

D:ARMIncSTSTM32F10xstm32f10x_type.h(23): error:  #256: invalid redeclaration of type name "s32" (declared at line 470 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(27): error:  #256: invalid redeclaration of type name "sc32" (declared at line 474 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(31): error:  #256: invalid redeclaration of type name "vs32" (declared at line 478 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(35): error:  #256: invalid redeclaration of type name "vsc32" (declared at line 482 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(39): error:  #256: invalid redeclaration of type name "u32" (declared at line 486 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(43): error:  #256: invalid redeclaration of type name "uc32" (declared at line 490 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(47): error:  #256: invalid redeclaration of type name "vu32" (declared at line 494 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(51): error:  #256: invalid redeclaration of type name "vuc32" (declared at line 498 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(57): error:  #101: "RESET" has already been declared in the current scope
D:ARMIncSTSTM32F10xstm32f10x_type.h(57): error:  #101: "SET" has already been declared in the current scope
D:ARMIncSTSTM32F10xstm32f10x_type.h(57): error:  #256: invalid redeclaration of type name "FlagStatus" (declared at line 502 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(57): error:  #256: invalid redeclaration of type name "ITStatus" (declared at line 502 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(59): error:  #101: "DISABLE" has already been declared in the current scope
D:ARMIncSTSTM32F10xstm32f10x_type.h(59): error:  #101: "ENABLE" has already been declared in the current scope
D:ARMIncSTSTM32F10xstm32f10x_type.h(59): error:  #256: invalid redeclaration of type name "FunctionalState" (declared at line 504 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_type.h(62): error:  #101: "ERROR" has already been declared in the current scope
D:ARMIncSTSTM32F10xstm32f10x_type.h(62): error:  #101: "SUCCESS" has already been declared in the current scope
D:ARMIncSTSTM32F10xstm32f10x_type.h(62): error:  #256: invalid redeclaration of type name "ErrorStatus" (declared at line 507 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_conf.h(147): warning:  #47-D: incompatible redefinition of macro "HSE_Value" (declared at line 511 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xcortexm3_macro.h(30): error:  #55: too many arguments in macro invocation
D:ARMIncSTSTM32F10xcortexm3_macro.h(30): error:  #79: expected a type specifier
D:ARMIncSTSTM32F10xcortexm3_macro.h(31): error:  #55: too many arguments in macro invocation
D:ARMIncSTSTM32F10xcortexm3_macro.h(31): error:  #79: expected a type specifier
D:ARMIncSTSTM32F10xcortexm3_macro.h(32): error:  #55: too many arguments in macro invocation
D:ARMIncSTSTM32F10xcortexm3_macro.h(32): error:  #79: expected a type specifier
D:ARMIncSTSTM32F10xstm32f10x_map.h(58): error:  #256: invalid redeclaration of type name "ADC_TypeDef" (declared at line 547 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_map.h(154): error:  #256: invalid redeclaration of type name "BKP_TypeDef" (declared at line 646 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_map.h(163): error:  #256: invalid redeclaration of type name "CAN_TxMailBox_TypeDef" (declared at line 658 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_map.h(171): error:  #256: invalid redeclaration of type name "CAN_FIFOMailBox_TypeDef" (declared at line 670 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_map.h(177): error:  #256: invalid redeclaration of type name "CAN_FilterRegister_TypeDef" (declared at line 680 of "D:ARMIncSTSTM32F10xstm32f10x.h")
D:ARMIncSTSTM32F10xstm32f10x_map.h(203): error:  #256: invalid redeclaration of type name "CAN_TypeDef" (declared at line 714 of "D:ARMIncSTSTM32F10xstm32f10x.h")
..L298Nl298n.c - 30 Error(s), 1 Warning(s).
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
3条回答
bewinner
1楼-- · 2019-08-14 23:56
头文件的问题,保持库函数与你的编译程序后编译器上的.h版本一致。
xiaofengfeng120
2楼-- · 2019-08-15 05:05
恩恩   好了,,谢谢!!!
电子初学
3楼-- · 2019-08-15 06:07
请问楼主,你这个问题是如何解决的啊  我也遇到了这个问题,望赐教

一周热门 更多>