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.

Undefined symbols when using CLK_gethtime()

I have a c6678 EVM and am trying to write a simple function to track elapsed time.

I coded the function something like

  if (!CLOCK_STARTED) {
    CLOCK_STARTED = 1;
    CLOCK_START_TICK = CLK_gethtime();
  }
  tick = CLK_gethtime() - CLOCK_START_TICK;

I have problems getting the final executable to link.  I have to include DSP/BIOS libraries to get the symbols (I chose "ti.targets.rts6000.ae66" but mostly guessing here), but bringing in those libraries causes other symbols to be undefined and I am lost.

I bring in

$ENV{"EMB_LIBS"}       = "-i\"C:/Progra~1/TexasI~2/ccsv5/tools/compiler/c6000/lib\" -i\"C:/Progra~1/TexasI~2/ccsv5/tools/compiler/c6000/include\" -l\"libc.a\" -l\"C:/Progra~1/TexasI~2/pdk_C6678_1_0_0_12/packages/ti/platform/evmc6678l/platform_lib/lib/release/ti.platform.evm6678l.ae66\" -l\"C:/Progra~1/TexasI~2/xdctools_3_22_01_21/packages/ti/targets/rts6000/lib/ti.targets.rts6000.ae66\"";

But I get

 undefined                                   first referenced

  symbol                                         in file

 ---------                                   ----------------

 xdc_runtime_Timestamp_SupportProxy_get32__E C:/Progra~1/TexasI~2/xdctools_3_22_01_21/packages/ti/targets/rts6000/lib/ti.targets.rts6000.ae66<Timestamp.oe66>
 xdc_runtime_Timestamp_getFreq__E            c:\gedev\system/nt/ti_c6678/lib/libent_target_bsp.a<emb_comm.obj>

Through using Linux/Cygwin tool "nm" I don't see anywhere where these symbols are defined.  There are similar symbols in the ti.targets.rts6000.ae66 library but different trailing letters (not "E").

Is there any way to get this to work?  Is there a simpler option?  (I am new to TI so if there is a simpler option, any verbose spelling out of steps would be much appreciated.)