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.

error in building up a BPSK.out file? How to fix it?

Other Parts Discussed in Thread: CCSTUDIO

------------------------------ BPSK.pjt - Debug ------------------------------
[c6713dskinit.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/Users/sadia/Desktop/BPSK/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -ms3 -mv6710 --mem_model:data=far -@"../../BPSK/Debug.lkf" "c6713dskinit.c"

[Vectors_poll.asm] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/Users/sadia/Desktop/BPSK/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -ms3 -mv6710 --mem_model:data=far -@"../../BPSK/Debug.lkf" "Vectors_poll.asm"

[BPSK.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/Users/sadia/Desktop/BPSK/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -ms3 -mv6710 --mem_model:data=far -@"Debug.lkf" "BPSK.c"

[Linking...] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
<Linking>
>> warning: creating .stack section with default size of 400 (hex) words.
Use
-stack option to change the default size.

undefined first referenced
symbol in file
--------- ----------------
_inputsource C:\Users\sadia\Desktop\BPSK\Debug\c6713dskinit.obj
>> error: symbol referencing errors - './Debug/BPSK.out' not built

>> Compilation failure

Build Complete,
2 Errors, 1 Warnings, 0 Remarks.

  • Please see this wiki page for a general explanation of why an "undefined symbol" error may occur.
    http://processors.wiki.ti.com/index.php/Build_Errors_in_CCS#Error:_unresolved_symbols_remain

    The key is to find where inputsource is defined. If it is in a source file make sure that file is added to the project or more likely, if it is defined in a library, make sure that library is linked to the project so it gets passed to the linker. I am not familiar with this specific project or code to be able to tell exactly which library you need though.

  • Dear ArtiG . I want to run this c code for binary phase shift keying! & i cant remove the error!
    C6713dskinit.c
    vectors_poll.asm
    C6713dsk.cmd
    rts6700.lib
    dsk6713bsl.lib
    csl6713.lib
    i have included above files
    n for header i gave the path in build options ....compiler...preprocessor category....C:\CCStudio_v3.1\C6000\dsk6713\include

    #include "C:\CCStudio_v3.1\C6000\dsk6713\include\DSK6713_AIC23.h" //codec-dsk support file
    Uint32 fs=DSK6713_AIC23_FREQ_8KHZ; //set sampling rate
    short bpsk_signal[200];
    short carrier[20];
    void main()
    {
    short k=0,i=0,j=0;
    short carrier[20]={1000,951,809,587,309,0,-309,-587,-809,-951,-1000,-951,-809,-587,-309,0,309,587,809,951}; //400Hz carrier
    short data[10]={1,-1,1,-1,1,-1,1,-1,1,-1};
    comm_poll(); //init DSK, codec, McBSP
    while(1) //infinite loop
    {
    for (k=0; k<10; k++)
    {
    if(data[k]>0) //to check input data(if +1)
    for(i=0;i<20;i++)
    {
    bpsk_signal[j] = carrier[i];
    j++;
    }

    else //else input data is -1
    for(i=0;i<20;i++)
    {
    bpsk_signal[j] = -1*carrier[i];
    j++;
    }
    if(j>199)
    j=0;
    }
    }
    }