初级会员

- 积分
- 75
- 金钱
- 75
- 注册时间
- 2014-1-13
- 在线时间
- 2 小时
|

楼主 |
发表于 2014-1-13 19:26:22
|
显示全部楼层
回复【2楼】Admin:
---------------------------------
不是,我刚新建了一个工程模板compiling main.c...
..\SYSTEM\sys\stm32f10x_type.h(27): error: #256: invalid redeclaration of type name "sc32" (declared at line 491 of "..\USER\stm32f10x.h")
..\SYSTEM\sys\stm32f10x_type.h: typedef signed long const sc32; /* Read Only */
..\SYSTEM\sys\stm32f10x_type.h: ^
..\SYSTEM\sys\stm32f10x_type.h(31): error: #256: invalid redeclaration of type name "vs32" (declared at line 495 of "..\USER\stm32f10x.h")
..\SYSTEM\sys\stm32f10x_type.h: typedef volatile signed long vs32;
..\SYSTEM\sys\stm32f10x_type.h: ^
..\SYSTEM\sys\stm32f10x_type.h(35): error: #256: invalid redeclaration of type name "vsc32" (declared at line 499 of "..\USER\stm32f10x.h")
..\SYSTEM\sys\stm32f10x_type.h: typedef volatile signed long const vsc32; /* Read Only */
..\SYSTEM\sys\stm32f10x_type.h: ^
..\SYSTEM\sys\stm32f10x_type.h(39): error: #256: invalid redeclaration of type name "u32" (declared at line 503 of "..\USER\stm32f10x.h")
..\SYSTEM\sys\stm32f10x_type.h: typedef unsigned long u32;
..\SYSTEM\sys\stm32f10x_type.h: ^
..\SYSTEM\sys\stm32f10x_type.h(43): error: #256: invalid redeclaration of type name "uc32" (declared at line 507 of "..\USER\stm32f10x.h")
..\SYSTEM\sys\stm32f10x_type.h: typedef unsigned long const uc32; /* Read Only */
..\SYSTEM\sys\stm32f10x_type.h: ^
..\SYSTEM\sys\stm32f10x_type.h(47): error: #256: invalid redeclaration of type name "vu32" (declared at line 511 of "..\USER\stm32f10x.h")
..\SYSTEM\sys\stm32f10x_type.h: typedef volatile unsigned long vu32;
..\SYSTEM\sys\stm32f10x_type.h: ^
..\SYSTEM\sys\stm32f10x_type.h(51): error: #256: invalid redeclaration of type name "vuc32" (declared at line 515 of "..\USER\stm32f10x.h")
..\SYSTEM\sys\stm32f10x_type.h: typedef volatile unsigned long const vuc32; /* Read Only */
..\SYSTEM\sys\stm32f10x_type.h: ^
..\SYSTEM\sys\stm32f10x_type.h(57): error: #101: "RESET" has already been declared in the current scope
..\SYSTEM\sys\stm32f10x_type.h: typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus;
出现这些错误,我是看着视频一步一步来的,还是不行 |
|