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.

Linking Problem

Other Parts Discussed in Thread: CCSTUDIO

Hi 

I am using code composer studio and use Library threshold function in Video preview example. When I Build the project then it gives me following error:-

-------------------------  video_preview.pjt - Debug  -------------------------

[video_preview.tcf] "C:\CCStudio_v3.3\bios_5_33_04\xdctools\tconf" -b -Dconfig.importPath=".;../common;C:/CCStudio_v3.3/bios_5_33_04/packages" video_preview.tcf

 

[i2c_params.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -pdr -fr"C:/Jalwinder_Project/2/Debug" -i"C:/Jalwinder_Project/2" -i"." -i"C:/CCStudio_v3.3/boards/evmdm6437_v1/include" -i"../../PSP_1_00_02_00/pspdrivers/inc" -i"../../psp_1_00_02_00/pspdrivers/inc" -i"../../PSP_0_05_03/pspdrivers/system/DM6437/bios/dm6437_evm/src/video/src" -i"../../PSP_1_00_02_00/pspdrivers/soc/dm6437/dsp/inc" -d"_DEBUG" -mv6400+ -@"Debug.lkf" "i2c_params.c"

 

[video_preview.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -pdr -fr"C:/Jalwinder_Project/2/Debug" -i"C:/Jalwinder_Project/2" -i"." -i"C:/CCStudio_v3.3/boards/evmdm6437_v1/include" -i"../../PSP_1_00_02_00/pspdrivers/inc" -i"../../psp_1_00_02_00/pspdrivers/inc" -i"../../PSP_0_05_03/pspdrivers/system/DM6437/bios/dm6437_evm/src/video/src" -i"../../PSP_1_00_02_00/pspdrivers/soc/dm6437/dsp/inc" -d"_DEBUG" -mv6400+ -@"Debug.lkf" "video_preview.c"

"video_preview.c", line 165: warning: variable "done" was declared but never referenced

 

[video_previewcfg.s62] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -pdr -fr"C:/Jalwinder_Project/2/Debug" -i"C:/Jalwinder_Project/2" -i"." -i"C:/CCStudio_v3.3/boards/evmdm6437_v1/include" -i"../../PSP_1_00_02_00/pspdrivers/inc" -i"../../psp_1_00_02_00/pspdrivers/inc" -i"../../PSP_0_05_03/pspdrivers/system/DM6437/bios/dm6437_evm/src/video/src" -i"../../PSP_1_00_02_00/pspdrivers/soc/dm6437/dsp/inc" -d"_DEBUG" -mv6400+ -@"Debug.lkf" "video_previewcfg.s62"

 

[video_previewcfg_c.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -pdr -fr"C:/Jalwinder_Project/2/Debug" -i"C:/Jalwinder_Project/2" -i"." -i"C:/CCStudio_v3.3/boards/evmdm6437_v1/include" -i"../../PSP_1_00_02_00/pspdrivers/inc" -i"../../psp_1_00_02_00/pspdrivers/inc" -i"../../PSP_0_05_03/pspdrivers/system/DM6437/bios/dm6437_evm/src/video/src" -i"../../PSP_1_00_02_00/pspdrivers/soc/dm6437/dsp/inc" -d"_DEBUG" -mv6400+ -@"Debug.lkf" "video_previewcfg_c.c"

 

[Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"

<Linking>

 

undefined                        first referenced

 symbol                              in file

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

_img                             C:\\Jalwinder_Project\\2\\Debug\\video_preview.obj

>>   error: symbol referencing errors - './Debug/video_preview.out' not built

 

>> Compilation failure

 

Build Complete,

  2 Errors, 1 Warnings, 0 Remarks.

I am not able to figure out why it is happenig . At the same time my original video preview example is working fine on CCS.
Can anybody please help me resolve this issue?
Thanks in advance..
Jalwinder Pingal

  • Jalwinder Singh said:

    undefined                        first referenced

     symbol                              in file

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

    _img                             C:\\Jalwinder_Project\\2\\Debug\\video_preview.obj

    >>   error: symbol referencing errors - './Debug/video_preview.out' not built

    In general this means that somewhere in your code you referenced a symbol as an extern (i.e. something that will exist in the end executable but is not in the C file it is being referenced from) and when the linker went to link the various object files in your project into a single executable together it was unable to locate that particular symbol. In this case it is saying that you tried to use _img in video_preview.obj (the compiled version of video_preview.c), but the symbol _img was not found in any object file you are currently linking in.

    This being said, to fix such a problem you either need to not reference the missing symbol (such as if there was a typo in your extern statement in the C file or header file), or to add the appropriate library or C file to your project which contains the definition of the symbol (such as if you were not linking in imglib.lib properly).

  • Thanks Bernie for your reply..

    I appreciate that one

     

    Jalwinder PIngal