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 linking

Other Parts Discussed in Thread: CCSTUDIO

i am trying to implement an ITU G.723.1 CODEC on C6713 DSK.

But I am getting following errors of multiple times _main symbol defined after rebuilding all files .

Kindly help  me to sort out the issue.

the output window shows as:-

>> D:\CCStudio_v3.1\tutorial\dsk6713\volume1\volume.cmd, line 26: warning:
               multiple definitions of SECTION named '.far'
>> D:\CCStudio_v3.1\tutorial\dsk6713\volume1\volume.cmd, line 27: warning:
               multiple definitions of SECTION named '.stack'
>> D:\CCStudio_v3.1\tutorial\dsk6713\volume1\volume.cmd, line 28: warning:
               multiple definitions of SECTION named '.cio'
>> D:\CCStudio_v3.1\tutorial\dsk6713\volume1\volume.cmd, line 29: warning:
               multiple definitions of SECTION named '.sysmem'


>>   error: symbol _main is defined multiple times: C:\Documents and
            Settings\MTECH\Desktop\dmmy\Debug\CHECKSNR.obj and C:\Documents and
            Settings\MTECH\Desktop\dmmy\Debug\CMPCODE.obj
>>   error: symbol _main is defined multiple times: C:\Documents and
            Settings\MTECH\Desktop\dmmy\Debug\CHECKSNR.obj and C:\Documents and
            Settings\MTECH\Desktop\dmmy\Debug\LBCCODE2.obj

>> Compilation failure

Build Complete,
  3 Errors, 8 Warnings, 0 Remarks.

  • Ankit,

    These messages are intended to provide clues to where to look for the location of the error. Unfortunately, for the case of your linker command file warnings of duplicate symbols, the message usually points to the second one. You will need to look elsewhere in that .cmd file or in the other .cmd files in your project.

    For the multiple definitions of main(), you are given the names of the object files in which the symbol appears. You can now find the source files that led to the creation of those object files, and then you can look for main() in each of those.

    You only get to use main() once per project.

    Regards,
    RandyP