在移植uCOS-II+uCGUI时出现的错误,求解决。 compiling App.c... C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(23): error: #256: invalid redeclaration of type name "s32" (declared at line 487 of "..\Libraries\CM3\stm32f10x.h") C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef signed long s32; C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: ^ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(27): error: #256: invalid redeclaration of type name "sc32" (declared at line 491 of "..\Libraries\CM3\stm32f10x.h") C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef signed long const sc32; /* Read Only */ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: ^ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(31): error: #256: invalid redeclaration of type name "vs32" (declared at line 495 of "..\Libraries\CM3\stm32f10x.h") C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef volatile signed long vs32; C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: ^ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(35): error: #256: invalid redeclaration of type name "vsc32" (declared at line 499 of "..\Libraries\CM3\stm32f10x.h") C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef volatile signed long const vsc32; /* Read Only */ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: ^ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(39): error: #256: invalid redeclaration of type name "u32" (declared at line 503 of "..\Libraries\CM3\stm32f10x.h") C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef unsigned long u32; C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: ^ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(43): error: #256: invalid redeclaration of type name "uc32" (declared at line 507 of "..\Libraries\CM3\stm32f10x.h") C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef unsigned long const uc32; /* Read Only */ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: ^ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(47): error: #256: invalid redeclaration of type name "vu32" (declared at line 511 of "..\Libraries\CM3\stm32f10x.h") C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef volatile unsigned long vu32; C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: ^ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(51): error: #256: invalid redeclaration of type name "vuc32" (declared at line 515 of "..\Libraries\CM3\stm32f10x.h") C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef volatile unsigned long const vuc32; /* Read Only */ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: ^ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(57): error: #101: "RESET" has already been declared in the current scope C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: ^ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(57): error: #101: "SET" has already been declared in the current scope C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: ^ C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(57): error: #256: invalid redeclaration of type name "FlagStatus" (declared at line 519 of "..\Libraries\CM3\stm32f10x.h") C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h: 出现这么多错误,我知道是新的st库跟keil安装的老版本的库之间的冲突,新的st库是用3.50的 求大侠搭救 ^ |
【MCU实战经验】+ STM32和uCGUI实现人体心电采集波形显示(开源原理图和工程文件)
【MCU实战经验】+基于STM32的UCGUI-DEMO移植
想下载一个SeggerEval_WIN32_MSVC_MinGW_GUI_V532,这个金币不够了
【安富莱】60期STemWin(uCGUI emWin)教程发布(含大量实例)
【MCU实战经验】可配置XML描述GUI
【STM32F429心得\疑问】+STM32GUI能提供原代码不?
【STM32F0申请】+基于STM32的UCOS+UCGUI娱乐系统
【探索发现STM32 F3系列】学习F3,跑GUI(如MICROCHIP或UCGUI 或ST的GUI)
【ST学习小组】STM32自编GUI探讨小组
回复:【探索发现STM32 F3系列】在移植uCOS-II+uCGUI时出现的错误,求解决!