中级会员
 
- 积分
- 369
- 金钱
- 369
- 注册时间
- 2013-12-23
- 在线时间
- 32 小时
|
我在移植一个工程的部分文件到另一个工程中的时候出现下面的错误,在网上搜索了一下已经把有关的头文件和.c文件包含到工程中了,include path也都设置成了工程中的库函数的目录,但是还是报这些错请教一下大家怎么解决
..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h(715): warning: #47-D: incompatible redefinition of macro "SCS_BASE" (declared at line 687 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h(723): warning: #47-D: incompatible redefinition of macro "SCB" (declared at line 935 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h(724): warning: #47-D: incompatible redefinition of macro "SysTick" (declared at line 930 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h(725): warning: #47-D: incompatible redefinition of macro "NVIC" (declared at line 934 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(487): error: #256: invalid redeclaration of type name "s32" (declared at line 23 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(491): error: #256: invalid redeclaration of type name "sc32" (declared at line 27 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(495): error: #256: invalid redeclaration of type name "vs32" (declared at line 31 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(499): error: #256: invalid redeclaration of type name "vsc32" (declared at line 35 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(503): error: #256: invalid redeclaration of type name "u32" (declared at line 39 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(507): error: #256: invalid redeclaration of type name "uc32" (declared at line 43 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(511): error: #256: invalid redeclaration of type name "vu32" (declared at line 47 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(515): error: #256: invalid redeclaration of type name "vuc32" (declared at line 51 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(519): error: #101: "RESET" has already been declared in the current scope
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(519): error: #101: "SET" has already been declared in the current scope
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(519): error: #256: invalid redeclaration of type name "FlagStatus" (declared at line 57 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(519): error: #256: invalid redeclaration of type name "ITStatus" (declared at line 57 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(521): error: #101: "DISABLE" has already been declared in the current scope
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(521): error: #101: "ENABLE" has already been declared in the current scope
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(521): error: #256: invalid redeclaration of type name "FunctionalState" (declared at line 59 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(524): error: #101: "ERROR" has already been declared in the current scope
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(524): error: #101: "SUCCESS" has already been declared in the current scope
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(524): error: #256: invalid redeclaration of type name "ErrorStatus" (declared at line 62 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(528): warning: #47-D: incompatible redefinition of macro "HSE_Value" (declared at line 147 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_conf.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(564): error: #256: invalid redeclaration of type name "ADC_TypeDef" (declared at line 58 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(663): error: #256: invalid redeclaration of type name "BKP_TypeDef" (declared at line 154 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(675): error: #256: invalid redeclaration of type name "CAN_TxMailBox_TypeDef" (declared at line 163 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(687): error: #256: invalid redeclaration of type name "CAN_FIFOMailBox_TypeDef" (declared at line 171 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(697): error: #256: invalid redeclaration of type name "CAN_FilterRegister_TypeDef" (declared at line 177 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(731): error: #256: invalid redeclaration of type name "CAN_TypeDef" (declared at line 203 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(758): error: #256: invalid redeclaration of type name "CRC_TypeDef" (declared at line 213 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(782): error: #256: invalid redeclaration of type name "DAC_TypeDef" (declared at line 232 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(792): error: #256: invalid redeclaration of type name "DBGMCU_TypeDef" (declared at line 239 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(804): error: #256: invalid redeclaration of type name "DMA_Channel_TypeDef" (declared at line 248 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(810): error: #256: invalid redeclaration of type name "DMA_TypeDef" (declared at line 254 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(895): error: #256: invalid redeclaration of type name "EXTI_TypeDef" (declared at line 265 of "C:\KeilMDK\ARM\INC\ST\STM32F10x\stm32f10x_map.h") |
|