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.

CCS/TM4C123GH6PM: Need help to resolve the errors in the complier.

Part Number: TM4C123GH6PM


Tool/software: Code Composer Studio

Hello, 

I am trying to create a program that intakes a signal and determines the rising edge of a waveform using interrupts (I am not sure I am on the right track so any help with the code would also be appreciated).

However, I am getting the following errors when I compile the code:

<Linking>
error #10056: symbol "main" redefined: first defined in "./ALD_Half_Bridge.obj"; redefined in "./project0.obj"

undefined first referenced
symbol in file
--------- ----------------
Systicinit ./ALD_Half_Bridge.obj
set_GPIO_PORT_A ./ALD_Half_Bridge.obj
set_GPIO_PORT_B ./ALD_Half_Bridge.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "project0.out" not built
remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changing instructions

>> Compilation failure
makefile:148: recipe for target 'project0.out' failed
gmake: *** [project0.out] Error 1
gmake: Target 'all' not remade because of errors.

I have tried to add additional header files (almost all of them that I thought would be necessary). 

However, I am still getting the same errors. I have posted the code below for reference. 

Any help/advice is appreciated thank you.

  • Rachel,

    I cannot help you with the code but I can tell you what the errors mean from the compiler tools' perspective.

    Rachel Roberts said:
    error #10056: symbol "main" redefined: first defined in "./ALD_Half_Bridge.obj"; redefined in "./project0.obj"

    This message is saying that both ALD_Half_Bridge.c and project0.c have a "main" function. Check if that is the case and ensure that there is only one main function in your project.

    Rachel Roberts said:

    undefined first referenced
    symbol in file
    --------- ----------------
    Systicinit ./ALD_Half_Bridge.obj
    set_GPIO_PORT_A ./ALD_Half_Bridge.obj
    set_GPIO_PORT_B ./ALD_Half_Bridge.obj

    This means that the linker is unable to find a definition for those symbols. Please see this link for more details about this error.