在编译rdb组件时rt_dstr_append_printf没有定义

发布于 2019-09-02 16:58:49    浏览:648
今天想测试测 rt-thread rdb功能,按下列方式,打开编译开关
RT-Thread online packages → tools packages

[ ] CmBacktrace: Advanced fault backtrace library for ARM Cortex-M series MCU. ----
[ ] EasyFlash: Lightweight embedded flash memory library. ----
[ ] EasyLogger: A ultra-lightweight, high-performance C/C++ log library ----
[ ] SystemView: A Segger utility for analysis and trace the RTOS ----
rdb: RT-Thread Debug Bridge for rt-thread --->
[ ] qrcode: A simple library for generating QR codes in C ----
[ ] ulog_easyflash: The ulog flash plugin by EasyFlash. ----
[ ] ADBD: Android Debug Bridge daemon implementation in RT-Thread ----

--- rdb: RT-Thread Debug Bridge for rt-thread
Enable example for rdb push/pull

Enable example for rdb shell
Version (latest) --->


编译时,报错:
.\build\keil\Obj\rt-thread.axf: Error: L6218E: Undefined symbol rt_dstr_append_printf (referred from rdbd_file.o).

定位到rdbd.c文件第833行,如下:
fullpath = (rt_dstr_t *)rt_dstr_sprintf(fullpath, "/%s", dir->d_name);
}
else
{
fullpath = (rt_dstr_t *)rt_dstr_sprintf(fullpath, "%s/%s", pathname, dir->d_name);
}
if (stat(fullpath->str, &filestat) == -1)
{
LOG_E("cannot access the file %s", fullpath->str);
return list;
}
if ((filestat.st_mode & S_IFMT) == S_IFDIR)
{
temp_list = get_file_list(fullpath->str);
list = (rt_dstr_t *)rt_dstr_append_printf
(list, "%s", temp_list->str);
rt_dstr_del(temp_list);
temp_list = RT_NULL;
}
else
{
list = (rt_dstr_t *)rt_dstr_append_printf(list, "%s\n", fullpath->str);
}
rt_dstr_del(fullpath);
fullpath = RT_NULL;
}
closedir(root_dir);
return list;
}

搜索rt_dstr_append_printf定义,没有找到,请问这个函数定义在哪里?

查看更多

1 个回答
bernard
bernard 2019-09-02
This guy hasn't written anything yet
dstr的在线软件包打开。rdb可以不用怎么考虑了,可以转到adb去

撰写答案

请登录后再发布答案,点击登录
关注者
0
被浏览
648

发布
问题

分享
好友

手机
浏览

扫码手机浏览