在命令行中使用: scons -j4 , 链接出错:
LINK rtthread-win32.exe
init.obj : error LINK2019: 无法解析的外部符号 _finsh_set_device, 该符号在函数_components_init 中被引用
rtthread-wein32.exe: fatal error LINK1120: 1个无法解析的外部命令
我查看了代码,void finsh_set_device(const char* device_name)在shell.h和finsh.h中都声明了的,但不知道为啥说不能引用。
另外我删除在components_init()中调用finsh_set_device(),可以编译通过,但是无法使用finsh。
请哪位高手知道下。