我在汇编方面有问题。在将函数调用otThreadGetMaxAllowedChildren()添加到openthread/examples/apps/cli/main.c之后,我得到了一个错误:
openthread/examples/apps/cli/main.c:228: undefined reference to `otThreadGetMaxAllowedChildren'类似的,与otThreadGetChildInfoByIndex()相同的问题
openthread/examples/apps/cli/main.c:204: undefined reference to `otThreadGetChildInfoByIndex'我添加了-DOPENTHREAD_FTD=1标志,但是仍然会发生错误。
你知道我该怎么做才能使编译成功吗?
发布于 2020-07-20 15:14:38
otThreadGetChildInfoByIndex()仅适用于FTD构建。
你应该要么:
#if OPENTHREAD_FTD包装您的子表代码。例如,您可以引用CLI码。
https://stackoverflow.com/questions/62994385
复制相似问题