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/TM4C1294NCPDT: Unresolved symbol remain error

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi,

While compiling my program in CCS, I am getting the following error.

"unresolved symbol main, first referenced in C:\ti\ccsv6\tools\compiler\arm_15.12.3.LTS\lib\rtsv7M4_T_le_v4SPD16_eabi.lib<args_main.obj> " .

What to do to resolve this? Please help me to get out of this.

 

Regards

Sandra

  • Sandra,

    The message is indicating that the symbol "main" is unresolved. Do you have a main() function in your project? 

    I see that you are working with Tiva TM4C part. If you are a new user, I would suggest importing and starting first with the examples from Tivaware.

  • Hi,

    Thank you for the reply. I took the tcp echo project from the sample projects and integrated Modbus slave stack on top of it. I included the files:

    #include <string.h>

    #include <xdc/std.h>

    #include <xdc/runtime/Error.h>

    #include <xdc/runtime/System.h>

    #include <ti/sysbios/BIOS.h>

    #include <ti/sysbios/knl/Task.h>

    #include <ti/drivers/GPIO.h>

    #include <netmain.h>

    #include <_stack.h>

    #include <_oskern.h>

    The include search path in compiler options is given as shown below:

    The file search path in linker options is given as shown below:

    The error console is as shown below:

    Did I miss any library file? How can I find where the error is? Please guide me to find the cause of error.

    Regards

    Sandra

     

  • Sorry, I am again attaching the snap shots as they are not attached properly.

    The include search path in compiler options is given as shown below:

    The file search path in linker options is given as shown below:

    The error console is as shown below:

    Regards

    Sandra

  • sandra george78 said:
    I took the tcp echo project from the sample projects and integrated Modbus slave stack on top of it.

    Is there a source file that contains a main() function in your project? In the tcpEcho example, the file tcpEcho.c has a main(). Are you using that file as-is in your project? If you are not, then you need to make sure that there is another source file with a main() function.

  • Hi Aarti,

     

    We have no other main function in source file other than the “tcp_echo.c”. We are using same tcp_echo project and modified the tcpHandler() function alone to support Modbus tcp protocol. Inside the tcpHandler(), I just configuring the target channel and using timer based polling for any incoming packet on the channel. If any incoming packet is available, call-back function will be called for processing the incoming packets.

     

    Can you please quickly help me  to resolve this issue?

    Regards

    Sandra

  • Hi Aarti,

    Thank you for your reply. In one file main was redefined. It is solved. Thank you for your help.

    Regards
    Sandra