Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
编译
RT-Thread VScode 插件编译报错
发布于 2021-12-30 18:56:55 浏览:1042
订阅该版
``` scons -j 12 scons: Reading SConscript files ... scons: done reading SConscript files. scons: warning: you do not seem to have the pywin32 extensions installed; parallel (-j) builds may not work reliably with open Python files. File "C:\Env\rtt_env\tools\Python27\Scripts\scons.py", line 204, in
scons: Building targets ... scons: building associated VariantDir targets: build CC build\applications\main.o CC build\drivers\board.o
:0:8: error: expected identifier or '(' before numeric constant
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^ CC build\drivers\drv_adc.o CC build\drivers\drv_clk.o CC build\drivers\drv_common.o CC build\drivers\drv_eth.o CC build\drivers\drv_flash_f4.o CC build\drivers\drv_gpio.o CC build\drivers\drv_hwtimer.o CC build\drivers\drv_pwm.o CC build\drivers\drv_qspi.o
:0:8: error: expected identifier or '(' before numeric constant scons: *** [build\applications\main.o] Error 1 CC build\drivers\drv_rtc.o
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^ scons: *** [build\drivers\board.o] Error 1
:0:8: error: expected identifier or '(' before numeric constant
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^ scons: *** [build\drivers\drv_clk.o] Error 1
:0:8: error: expected identifier or '(' before numeric constant
:0:8: error: expected identifier or '(' before numeric constant
:0:8: error: expected identifier or '(' before numeric constant
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\components\drivers\include/drivers/serial.h:158:55: note: in expansion of macro 'c' int (*putc)(struct rt_serial_device *serial, char c); ^ scons: *** [build\drivers\drv_flash_f4.o] Error 1 scons: *** [build\drivers\drv_adc.o] Error 1
:0:8: error: expected identifier or '(' before numeric constant scons: *** [build\drivers\drv_common.o] Error 1
:0:8: error: expected identifier or '(' before numeric constant
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^
:0:8: error: expected identifier or '(' before numeric constant
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\components\drivers\include/drivers/serial.h:158:55: note: in expansion of macro 'c' int (*putc)(struct rt_serial_device *serial, char c); ^
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\components\drivers\include/drivers/serial.h:158:55: note: in expansion of macro 'c' int (*putc)(struct rt_serial_device *serial, char c); ^
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^ scons: *** [build\drivers\drv_hwtimer.o] Error 1
:0:8: error: expected identifier or '(' before numeric constant
:0:8: error: expected identifier or '(' before numeric constant
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\components\drivers\include/drivers/serial.h:158:55: note: in expansion of macro 'c' int (*putc)(struct rt_serial_device *serial, char c); ^
:0:8: error: expected identifier or '(' before numeric constant scons: *** [build\drivers\drv_qspi.o] Error 1
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^ scons: *** [build\drivers\drv_eth.o] Error 1
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\include/rtthread.h:541:32: note: in expansion of macro 'c' void *rt_memset(void *src, int c, rt_ubase_t n); ^
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\components\drivers\include/drivers/serial.h:158:55: note: in expansion of macro 'c' int (*putc)(struct rt_serial_device *serial, char c); ^
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\components\drivers\include/drivers/serial.h:158:55: note: in expansion of macro 'c' int (*putc)(struct rt_serial_device *serial, char c); ^ s
:0:8: error: expected ';', ',' or ')' before numeric constant rt-thread\components\drivers\include/drivers/serial.h:158:55: note: in expansion of macro 'c' int (*putc)(struct rt_serial_device *serial, char c); ^ cons: *** [build\drivers\drv_pwm.o] Error 1 scons: *** [build\drivers\drv_rtc.o] Error 1 scons: *** [build\drivers\drv_gpio.o] Error 1 scons: building terminated because of errors. ```
查看更多
1
个回答
默认排序
按发布时间排序
寻找GUI
2021-12-31
没有最终的成功,也没有致命的失败,可贵的是继续前进的勇气
define的变量错误引用了
撰写答案
登录
注册新账号
关注者
0
被浏览
1k
关于作者
陈建颖
这家伙很懒,什么也没写!
提问
2
回答
0
被采纳
0
关注TA
发私信
相关问题
1
Rtthread-studio编译报错
2
编译及下载必要进程的名称
3
studio 命令行编译
4
BSP首次使用编译不过
5
ART-PI factory demo在gcc 9.3.1 上无法编译.
6
ART-PI中 ART-Pi_W25Q64.stldr是怎么制作和应用的
7
RT-Thread Studio编译操作失败
8
ART-PI的例子工程文件导入后编译不通过
9
如何选择只编译部分文件经验
10
lv7_rtthread_f1c100s编译问题
推荐文章
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
【1024】瑞萨 RA 系列 BSP 制作与适配最新版本的 Keil 、 RSC、固件,较新的 FSP
2
基于 RT-Thread 星火一号开发板的俄罗斯方块
3
RTThread studio 中添加 Micro_ROS 软件包有 Bug
4
【1024 RT-Thread与英飞凌(infineon)合作得板子PSOC 6 板子学习】
5
【1024】用HMI-Board 復刻 X-Track
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
ART-Pi
FinSH
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
rt-smart
FAL
ESP8266
I2C_IIC
WIZnet_W5500
ota在线升级
UART
cubemx
PWM
flash
packages_软件包
freemodbus
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
keil_MDK
SFUD
rt_mq_消息队列_msg_queue
C++_cpp
at_device
ulog
本月问答贡献
出出啊
1516
个答案
342
次被采纳
小小李sunny
1440
个答案
289
次被采纳
张世争
793
个答案
171
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
148
次被采纳
本月文章贡献
出出啊
1
篇文章
1
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
4
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部