求助关于工程错误的问题

只看楼主 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


回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
基于MSPM0L1306的MODBUS-RTU协议通讯实验被打赏50分 | |
每周了解几个硬件知识+485硬件知识分享被打赏10分 | |
【换取手持示波器】树莓派PICOW网页烟花被打赏18分 | |
【换取手持示波器】树莓派PICO逻辑分析仪被打赏16分 | |
【分享评测,赢取加热台】教你五分钟本地部署蒸馏版本的DeepSeekR1-7B被打赏12分 | |
【换取手持示波器】蓝牙音箱更换电池被打赏8分 | |
【换取手持示波器】鼠标更换微动开关被打赏10分 | |
【我要开发板】4.传感器移植被打赏50分 | |
【换取手持数字示波器】RISC-VGCC使用-fno-omit-frame-pointer编译选项实现栈回溯被打赏29分 | |
【分享评测,赢取加热台】+开关电源简述被打赏7分 |