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.

unresolved symbol CfgNew, first referenced in ./main.obj

I use code composer 5.1

I found the following error of the ethernet test.

code :

#include <ti/ndk/inc/netmain.h>

......

Void tsk0_func(UArg arg0, UArg arg1)

{  

HANDLE hCfg;

 hCfg = CfgNew();  

if( !hCfg )  

{   

platform_write("Unable to create configuration\n");   

goto main_exit;

}

  main_exit:  //

NC_SystemClose();

 return;

}

cfg :

....

var Diags = xdc.useModule('xdc.runtime.Diags');
var Csl = xdc.useModule('ti.csl.Settings');
var Pa = xdc.useModule('ti.drv.pa.Settings');
var NdkTransPort = xdc.loadPackage('ti.transport.ndk');

.....

error :


#10010 errors encountered during linking; "ethernet.out" not built 
#10234-D unresolved symbols remain

unresolved symbol CfgNew, first referenced in ./main.obj

 

properties :

Build -> C6000 Linker -> File Search Path

Include library file or command file as input (--library, -l)

"C:\ti\pdk_C6678_1_1_2_5\packages\ti\transport\ndk\nimu\lib\release\ti.transport.ndk.nimu.ae66"

"C:\ti\pdk_C6678_1_1_2_5\packages\ti\platform\evmc6678l\platform_lib\lib\release\ti.platform.evm6678l.ae66"

 

Add <dir> to library search path(--search_path, -i)

"C:\ti\pdk_C6678_1_1_2_5\packages\ti\transport\ndk\nimu\lib\release"

"C:\ti\pdk_C6678_1_1_2_5\packages\ti\platform\evmc6678l\platform_lib\lib\release"

 

 

Have a nice day~~~

  • Hi oh jong,

    We recommend you to start with MCSDK NDK examples and install the latest MCSDK for development. Please find the latest MCSDK 2.X download and user guide link below my signature.

    Please refer the NDK FAQ from below link,

  • Dear Oh Jong,
    You can use the latest MCSDK package version 2.1.2.6.
    software-dl.ti.com/.../index_FDS.html

    BTW, which example are you testing ?
    Are you using TI example code or your own code ?
    We have NDK hello world and client examples.
    C:\ti\mcsdk_2_01_02_06\examples\ndk

    The "CfgNew" comes from "configif.h" file.
    C:\ti\ndk_2_22_02_16\packages\ti\ndk\inc\nettools\inc

    Did you add the NDK location into your project ?
    C:\ti\ndk_2_22_02_16\packages