新手上路
- 积分
- 42
- 金钱
- 42
- 注册时间
- 2013-1-21
- 在线时间
- 0 小时
|
我新建了一个项目,添加了很多很多东西,编译之后一推错误,都是
..\USER\stm32f10x.h(895): error: #256: invalid redeclaration of type name "EXTI_TypeDef" (declared at line 265 of "C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\HARDWARE\KEY\key.h(27): error: #20: identifier "uint16_t" is undefined
类似这些问题,都是库函数定义问题,
可我明明设置了
我查看了 inc文件夹里有各种需要的头文件,可是出现上面的报错,求指点!!
上传工程 希望看看 我这个还没写主函数
---------------------------------------------------------------------------------------------------------
我发现是C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h(213): error: #256: invalid redeclaration of type name "CRC_TypeDef" (declared at line 758 of "..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h 和
.\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h 类型定义冲突!!
可是我的include path 就没有
C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h 这个定义啊!怎么就找上这个,除了把类型定义的都注释掉,还有什么好的办法吗??我是新手keil 4不怎么熟,希望指点下!!万分感谢!
|
|