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.

TivaC ware unresolved symbol in linking

Other Parts Discussed in Thread: TM4C1231E6PZ

CCS version:6.1.1.00022

Tivaware version: TivaWare_C_Series-2.1.2.111

Target : TM4C1231E6PZ

I am building a simple Blinky.c type of project in which just one TIVAC driverlib function is accessed:

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOJ);

The following are the included header files ( as shown in Blinky.c example):

#include <stdint.h>
#include "stdbool.h"
#include <hw_memmap.h>
#include <gpio.h>
#include <sysctl.h>

I get unresolved symbol error for the above function.

The Build output is given below:

**** Build of configuration Debug for project Trans5_v1p0 ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me
--include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/TivaWare_C_Series-2.1.2.111/inc"
--include_path="C:/ti/TivaWare_C_Series-2.1.2.111/driverlib" -g --gcc --define=ccs="ccs" --define=PART_TM4C1231E6PZ
--diag_wrap=off --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
"../main.c", line 92: warning #112-D: statement is unreachable
'Finished building: ../main.c'
' '
'Building file: ../tm4c1231e6pz_startup_ccs.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me
--include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include"
--include_path="C:/ti/TivaWare_C_Series-2.1.2.111/inc" --include_path="C:/ti/TivaWare_C_Series-2.1.2.111/driverlib" -g --gcc --define=ccs="ccs"
--define=PART_TM4C1231E6PZ --diag_wrap=off --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="tm4c1231e6pz_startup_ccs.pp" "../tm4c1231e6pz_startup_ccs.c"
'Finished building: ../tm4c1231e6pz_startup_ccs.c'
' '
'Building target: Trans5_v1p0.out'
'Invoking: ARM Linker'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --gcc --define=ccs="ccs" --define=PART_TM4C1231E6PZ --diag_wrap=off --diag_warning=225 --display_error_number -z -m"Trans5_v1p0.map" --heap_size=0 --stack_size=512 -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/lib" -i"C:/ti/TivaWare_C_Series-2.1.2.111/inc" -i"C:/ti/TivaWare_C_Series-2.1.2.111/driverlib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include" --reread_libs --display_error_number --diag_wrap=off --warn_sections --xml_link_info="Trans5_v1p0_linkInfo.xml" --rom_model -o "Trans5_v1p0.out" "./main.obj" "./tm4c1231e6pz_startup_ccs.obj" "../tm4c1231e6pz.cmd" -l"libc.a"
<Linking>

undefined first referenced
symbol in file
--------- ----------------
SysCtlPeripheralEnable ./main.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "Trans5_v1p0.out" not built