求助关于工程错误的问题

只看楼主 1楼
我在编译的时候,出现下面的错误,请高手们指点一下
D:\Keil\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(23): error: #256: invalid redeclaration of type name "s32" (declared at line 470 of "D:\Keil\ARM\Inc\ST\STM32F10x\stm32f10x.h")
。。。
D:\Keil\ARM\Inc\ST\STM32F10x\stm32f10x_type.h(57): error: #101: "RESET" has already been declared in the current scope
。。。
..\src\TouchScreen_ADS7843.c(27): error: #20: identifier "GPIO_InitTypeDef" is undefined
。。。
关键词: 求助 关于 工程 错误 问题







这个可能是在你的工程下没有包含gpio.h的头文件,没包含这个头文件之后,MDK引用了自己的库文件。给你参考一篇博文。我在这里找到了答案。希望对你有帮助
http://topic.csdn.net/u/20110916/17/b6f95b69-0db8-4d1b-9a39-5af70732af90.html
http://topic.csdn.net/u/20110916/17/b6f95b69-0db8-4d1b-9a39-5af70732af90.html

