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.

Undefined symbol first referenced in ./main.obj file error (linking error)

Other Parts Discussed in Thread: MSP430WARE

Hi

I am developing an interface between my TMDSEVM6678l and an ADC by using SPI. Up and till now I have only tried to get all my include and header files correct in order to start setting up the SPI on the board, but I keep getting errors of undefined symbol first referenced in ./main.obj. I deduced and presume that it is a linking error, but no matter what advice I follow of previous forum discussions I just can not get it sorted. I have elaborately added all library files and search-paths to my C6000 linker and compiler into the properties of my project, with no success!

I have attached my build console text below, if anyone could perhaps help, ANY advice would be much appreciated.

 

'Building target: PROJECT.out'
'Invoking: C6000 Linker'
"C:/ti/ccsv6/tools/compiler/c6000_7.4.8/bin/cl6x" -mv6600 --abi=eabi -O0 -ms0 -g --display_error_number --diag_warning=225 --diag_wrap=off -z -m"PROJECT.map" -i"C:/ti/drivers" -i"C:/ti/xdctools_3_23_04_60/packages/ti/platforms" -i"C:/ti/ccsv6/tools/compiler/c6000_7.4.8/lib" -i"C:/ti/ccsv6/tools/compiler/c6000_7.4.8" -i"C:/ti/mcsdk_2_01_02_06" -i"C:/ti/ccsv6/tools/compiler/c6000_7.4.8" -i"C:/ti/pdk_C6678_1_1_2_6/packages/ti/csl" -i"C:/ti/pdk_C6678_1_1_2_6/packages" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="PROJECT_linkInfo.xml" --rom_model -o "PROJECT.out" "./main.obj" "../C6678.cmd" -l"C:\ti\ccsv6\tools\compiler\c6000_7.4.8\lib\libc.a" -l"C:\ti\ccsv6\tools\compiler\c6000_7.4.8\lib\rts6600_elf.lib" -l"C:\ti\ccsv6\tools\compiler\c6000_7.4.8\lib\rts6600_elf_mt.lib" -l"C:\ti\ccsv6\tools\compiler\c6000_7.4.8\lib\rts6600e_elf.lib" -l"C:\ti\ccsv6\tools\compiler\c6000_7.4.8\lib\rts6600e_elf_mt.lib" -l"C:\ti\ccsv5\ccs_base\msp430\msp430ware_1_20_00_16\driverlib\5xx_6xx\CCS\driverlib.lib" -l"C:\ti\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_lib\lib\debug\ti.platform.evm6678l.lite.lib" 
<Linking>
warning #10373-D: library "C:\ti\ccsv5\ccs_base\msp430\msp430ware_1_20_00_16\driverlib\5xx_6xx\CCS\driverlib.lib" contains TI-COFF object files which are incompatible with the ELF output file. Ensure you are using the proper library.
warning #10373-D: library "C:\ti\ccsv5\ccs_base\msp430\msp430ware_1_20_00_16\driverlib\5xx_6xx\CCS\driverlib.lib" contains TI-COFF object files which are incompatible with the ELF output file. Ensure you are using the proper library.
warning #10247-D: creating output section ".bss" without a SECTIONS specification
warning #10247-D: creating output section ".const" without a SECTIONS specification
warning #10247-D: creating output section ".far" without a SECTIONS specification

>> Compilation failure
warning #10247-D: creating output section ".fardata" without a SECTIONS specification
warning #10247-D: creating output section ".resmgr_handles" without a SECTIONS specification
warning #10247-D: creating output section ".resmgr_memregion" without a SECTIONS specification
warning #10247-D: creating output section ".resmgr_pa" without a SECTIONS specification
warning #10247-D: creating output section ".stack" without a SECTIONS specification
warning #10247-D: creating output section ".text" without a SECTIONS specification
warning #10247-D: creating output section ".cinit" without a SECTIONS specification
warning #10210-D: creating ".stack" section with default size of 0x400; use the -stack option to change the default size

undefined first referenced
symbol in file 
--------- ----------------
Convert_CoreLocal2GlobalAddr ./main.obj 
Cppi_channelClose ./main.obj 
Cppi_channelEnable ./main.obj 
Cppi_init ./main.obj 
Cppi_initDescriptor ./main.obj 
Cppi_open ./main.obj 
Cppi_rxChannelOpen ./main.obj 
Cppi_setCpdmaLoopback ./main.obj 
Cppi_txChannelOpen ./main.obj 
Pa_create ./main.obj 
Pa_downloadImage ./main.obj 
Pa_getBufferReq ./main.obj 
Pa_resetControl ./main.obj 
Qmss_init ./main.obj 
Qmss_insertMemoryRegion ./main.obj 
Qmss_queueClose ./main.obj 
Qmss_start ./main.obj 
platform_write ./main.obj 
qmssLObj ./main.obj 
xdc_runtime_Error_init__E ./main.obj 
xdc_runtime_Memory_alloc__E ./main.obj 
xdc_runtime_Memory_free__E ./main.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "PROJECT.out" not built
gmake: *** [PROJECT.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****