This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C6678.网络调试问题。使用NDK和SYS/BIOS系统。加急????



warning: creating output section "platform_lib" without a SECTIONS
specification

undefined first referenced
symbol in file
--------- ----------------
CfgAddEntry ./main.obj
CfgFree ./main.obj
CfgNew ./main.obj
DaemonFree ./main.obj
DaemonNew ./main.obj
NC_NetStart ./main.obj
NC_SystemClose ./main.obj
NC_SystemOpen ./main.obj
_oscfg ./main.obj
inet_addr ./main.obj
mmZeroInit ./main.obj
recvncfree ./udpHello.obj
recvncfrom ./udpHello.obj
sendto ./udpHello.obj
setsockopt ./udpHello.obj

error: unresolved symbols remain
error: errors encountered during linking; "bios.out" not built

我查询了这些函数的位置,头文件里面都是标注为外部定义,我不晓得这些函数具体在哪里定义的,是不是我所要保函的库文件没有包涵,请工程师给我指导指导。谢谢。

  • 我觉得你需要在工程的cfg文件中添加var NdkTransport = xdc.loadPackage('ti.transport.ndk'),在file search path->include library中添加"libc.a",在linker的时候自动选择include相应的lib,建议参考mcsdk下C:\ti\mcsdk_2_01_02_06\examples\ndk\client的client 例子将你们需要的代码加入测试。

  • 工程师你好,我的CFG文件是图形配置的,我不晓得如何加入NdkTransport = xdc.loadPackage('ti.transport.ndk'),可供我选择的就是有NDK,在file search path->include library中已经添加"libc.a"。如何在linker中选择include加入相应的lib。我的MCSDK可以编译通过,但是没有办法下载到我的板子上,链接出错。谢谢。