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.

On the Symbol Referencing Error Issue

Other Parts Discussed in Thread: TMS320F2812, CCSTUDIO

Hi all, I compiled my code according to TI's developer guide on TMS320F2812.

After did that, I received this error.

------------------------------ Lab2.pjt - Debug ------------------------------
Warning: The project has no cmd file while the Text Linker is selected
[Linking...] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -@"Debug.lkf"
<Linking>
>> warning: creating output section .reset without SECTIONS specification
>> warning: creating output section .ebss without SECTIONS specification
>> warning: creating output section .econst without SECTIONS specification

undefined first referenced
symbol in file
--------- ----------------
_GpioDataRegs C:\Research\Real Time Digital Signal Processing\Labratory\Lab2\Debug\Lab2.obj
_SysCtrlRegs C:\Research\Real Time Digital Signal Processing\Labratory\Lab2\Debug\Lab2.obj
_GpioMuxRegs C:\Research\Real Time Digital Signal Processing\Labratory\Lab2\Debug\Lab2.obj
>> error: symbol referencing errors - './Debug/Lab2.out' not built

>> Compilation failure

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

I checked for this issue on web and I found some same replies on this error, and I reviewed my code.

But I couldn't find errors.

Please let me know how can I solve that.

Best Regards,

Vahab Daneshpanah

  • The error is unlikely in your code, but that you do not have a linker command file included in your project as the initial warning indicated.

    There are example linker command files as a part of the C281x C/C++ Header Files and Peripheral Examples which you could use as a baseline.

    The undefined symbol reference errors are due to the fact that the linker has not found any object file or library included or specified by the project build settings that includes the implementation of these symbols.  You need to identify where these are located and include that into your project.