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.

TM4C129ENCPDT: Host Programming CC3100 with Host MCU TM4C129ENCPDT error unresolved symbol

Part Number: TM4C129ENCPDT
Other Parts Discussed in Thread: CC3100,

Hi everyone,

i am facing Unresolved symbols during linking stage while executing Host Programming for CC3100 , can you check what i am missing , 

Thanks in advance 

Console output:

**** Build of configuration Debug for project host_test ****

"C:\\ti\\ccs\\utils\\bin\\gmake" -k -j 2 all -O 
 
Building file: "../tm4c129encpdt_startup_ccs.c"
Invoking: Arm Compiler
"C:/ti/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/chira/workspace_v12/host_test" --include_path="C:/ti/CC3100SDK_1.3.0/cc3100-sdk/simplelink/include" --include_path="C:/ti/CC3100SDK_1.3.0/cc3100-sdk/simplelink" --include_path="C:/ti/CC3100SDK_1.3.0/cc3100-sdk/platform/tiva-c-connected-launchpad" --include_path="C:/ti/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include" --define=ccs="ccs" --define=PART_TM4C129ENCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="tm4c129encpdt_startup_ccs.d_raw"  "../tm4c129encpdt_startup_ccs.c"
Finished building: "../tm4c129encpdt_startup_ccs.c"
 
Building file: "../main.c"
Invoking: Arm Compiler
"C:/ti/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/chira/workspace_v12/host_test" --include_path="C:/ti/CC3100SDK_1.3.0/cc3100-sdk/simplelink/include" --include_path="C:/ti/CC3100SDK_1.3.0/cc3100-sdk/simplelink" --include_path="C:/ti/CC3100SDK_1.3.0/cc3100-sdk/platform/tiva-c-connected-launchpad" --include_path="C:/ti/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include" --define=ccs="ccs" --define=PART_TM4C129ENCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw"  "../main.c"
"../main.c", line 216: warning #225-D: function "initLEDs" declared implicitly
Finished building: "../main.c"
 
Building target: "host_test.out"
Invoking: Arm Linker
"C:/ti/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --define=ccs="ccs" --define=PART_TM4C129ENCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"host_test.map" --heap_size=0 --stack_size=512 -i"C:/ti/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/lib" -i"C:/ti/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="host_test_linkInfo.xml" --rom_model -o "host_test.out" "./main.obj" "./tm4c129encpdt_startup_ccs.obj" "../tm4c129encpdt.cmd"  -llibc.a 
<Linking>
 
 undefined           first referenced
  symbol                 in file     
 ---------           ----------------
 CLI_Configure       ./main.obj      
 CLI_Write           ./main.obj      
 _sl_GetCreateFsMode ./main.obj      
 initClk             ./main.obj      
 initLEDs            ./main.obj      
 sl_DevGet           ./main.obj      
 sl_FsClose          ./main.obj      
 sl_FsOpen           ./main.obj      
 sl_FsWrite          ./main.obj      
 sl_Start            ./main.obj      
 sl_Stop             ./main.obj      
 stopWDT             ./main.obj      
 
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "host_test.out" not built
 
>> Compilation failure
makefile:136: recipe for target 'host_test.out' failed
makefile:132: recipe for target 'all' failed
gmake[1]: *** [host_test.out] Error 1
gmake: *** [all] Error 2

**** Build Finished ****

here i have attached the project

https://drive.google.com/file/d/1-SBy3ZWX205M_MnTwN1ZzPBzxzZ3m6Hf/view?usp=share_link

thanks in advance

Chiranth

  • Hi,

      If you get undefined symbols like below this normally means the library is not linked. You need to link to the library where these symbols are defined or compile the files that contain these symbols.

    undefined first referenced
    symbol in file
    --------- ----------------
    CLI_Configure ./main.obj
    CLI_Write ./main.obj
    _sl_GetCreateFsMode ./main.obj
    initClk ./main.obj
    initLEDs ./main.obj
    sl_DevGet ./main.obj
    sl_FsClose ./main.obj
    sl_FsOpen ./main.obj
    sl_FsWrite ./main.obj
    sl_Start ./main.obj
    sl_Stop ./main.obj
    stopWDT ./main.obj

    For example, your main() is calling  CLI_Configure(). Where is CLI_Configure? If CLI_Configure is part of some library then you need to include them in the link library path. See below CCS build settings where you can link to your library. 

    If CLI_Configure is part of some source files, not in library, then you need to build/compile these source files so the object files will be linked by the linker.