Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread一般讨论
在rt中使用了#define RT_USING_DFS 文件系统后编译出现错误
发布于 2013-06-05 11:22:27 浏览:2966
订阅该版
(用的是rt1.1.0)(MDK4.12)(目标芯片stm32f103rbt6)(miniSD spi驱动设备)错误信息为: ```Build target 'RT-Thread STM32' compiling application.c... f:KeilARMINCSTSTM32F10xstm32f10x_type.h(23): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef signed long s32; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(24): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef signed short s16; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(25): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef signed char s8; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(27): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef signed long const sc32; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(28): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef signed short const sc16; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(29): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef signed char const sc8; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(31): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile signed long vs32; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(32): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile signed short vs16; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(33): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile signed char vs8; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(35): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile signed long const vsc32; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(36): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile signed short const vsc16; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(37): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile signed char const vsc8; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(39): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef unsigned long u32; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(40): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef unsigned short u16; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(41): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef unsigned char u8; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(43): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef unsigned long const uc32; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(44): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef unsigned short const uc16; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(45): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef unsigned char const uc8; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(47): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile unsigned long vu32; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(48): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile unsigned short vu16; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(49): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile unsigned char vu8; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(51): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile unsigned long const vuc32; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(52): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile unsigned short const vuc16; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(53): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef volatile unsigned char const vuc8; /* Read Only */ f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(55): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef enum {FALSE = 0, TRUE = !FALSE} bool; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(57): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(59): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xstm32f10x_type.h(62): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xstm32f10x_type.h: typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrorStatus; f:KeilARMINCSTSTM32F10xstm32f10x_type.h: ^ f:KeilARMINCSTSTM32F10xcortexm3_macro.h(27): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xcortexm3_macro.h: void __WFI(void); f:KeilARMINCSTSTM32F10xcortexm3_macro.h: ^ f:KeilARMINCSTSTM32F10xcortexm3_macro.h(28): error: #268: declaration may not appear after executable statement in block f:KeilARMINCSTSTM32F10xcortexm3_macro.h: void __WFE(void); f:KeilARMINCSTSTM32F10xcortexm3_macro.h: ^ f:KeilARMINCSTSTM32F10xcortexm3_macro.h: application.c: 0 warnings, 30 errors```
查看更多
2
个回答
默认排序
按发布时间排序
aozima
2013-06-05
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
delete f:\Keil\ARM\INC\ST\STM32F10x\*
撰写答案
登录
注册新账号
关注者
0
被浏览
3k
关于作者
天浪90
这家伙很懒,什么也没写!
提问
5
回答
3
被采纳
0
关注TA
发私信
相关问题
1
有关动态模块加载的一篇论文
2
最近的调程序总结
3
晕掉了,这么久都不见layer2的踪影啊
4
继续K9ii的历程
5
[GUI相关] FreeType 2
6
[GUI相关]嵌入式系统中文输入法的设计
7
20081101 RT-Thread开发者聚会总结
8
嵌入式系统基础
9
linux2.4.19在at91rm9200 上的寄存器设置
10
[转]基于嵌入式Linux的通用触摸屏校准程序
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
env中添加lvgl软件包后,keil编译包--c99错误
2
【NXP-MCXA153】 定时器驱动移植
3
GD32F450 看门狗驱动适配
4
【NXP-MCXA153】看门狗驱动移植
5
RT-Thread Studio V2.2.9 Release Note
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
freemodbus
flash
cubemx
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
编译报错
Debug
rt_mq_消息队列_msg_queue
SFUD
keil_MDK
msh
ulog
C++_cpp
MicroPython
本月问答贡献
踩姑娘的小蘑菇
7
个答案
2
次被采纳
a1012112796
18
个答案
1
次被采纳
红枫
5
个答案
1
次被采纳
Ryan_CW
5
个答案
1
次被采纳
张世争
4
个答案
1
次被采纳
本月文章贡献
YZRD
3
篇文章
6
次点赞
catcatbing
3
篇文章
6
次点赞
lizimu
2
篇文章
10
次点赞
qq1078249029
2
篇文章
2
次点赞
xnosky
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部