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.
My program is facing the following error:
undefined first referenced
symbol in file
--------- ----------------
_main C:\ti\ccs1040\ccs\tools\compiler\ti-cgt-c2000_21.6.0.LTS\lib\rts2800_fpu32_eh.lib<args_main.c.obj>
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "sci_ex4_echoback.out" not built
From what I understand the program does not understand where the main or start of the program is. This was not an issue before, I changed the linker file memory allocation to make it as follows:
.text : >> FLASH_BANK0_SEC0| FLASH_BANK0_SEC1|FLASH_BANK0_SEC2|FLASH_BANK0_SEC3|FLASH_BANK0_SEC4, PAGE = 0
Could that be an issue or what do you think is the issue? How do I resolve it?
Thanks in advance.
Hi,
Can you confirm that the main function is defined in your CCS project and the file is included in the build. Ideally, changing the cmd file should not cause this issue.
Also, are you including the rts2800_fpu32_eh.lib explicitly? Or are you using the index library libc.a?
Regards,
Veena
Hello Veena,
Thank you for the input. I realised that there was no main() in my program. It worked after I added them.
Thanks again.