I am attempting to work through the RTSC primer at RTSC-pedia to learn more about XDC programming.
I have been working in Primer lesson 2 which involves adding a new module to the xdc environment.
The Primer page may be found here:
I have also added the acme.utils folder to my XDC make path environment in CCS.
In my case the module is named: acme.utils.Bench.
I have successfully been able to get the make system in CCS to compile the main.c, but when it gets to the linker step I see the following:
Invoking: GNU Linker
"/home/rbagdazian/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc" -mcpu=cortex-a15 -marm -mfloat-abi=hard -mfpu=vfpv3 -DSOC_K2H -DEVM_K2H -g -gdwarf-3 -gstrict-dwarf -Wall -Wl,-Map,"XDC_Lesson2.map" -nostartfiles -static -Wl,--gc-sections -L"/home/rbagdazian/ti/bios_6_45_01_29/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -L"/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -Wl,--defsym,HEAPSIZE=16384 -Wl,--defsym,STACKSIZE=16384 -o"XDC_Lesson2.out" "./main.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lrdimon -lgcc -lm -lnosys -lc -Wl,--end-group
makefile:143: recipe for target 'XDC_Lesson2.out' failed
configPkg/linker.cmd:204: undefined symbol `acme_utils_Bench_begin__F' referenced in expression
collect2: error: ld returned 1 exit status
gmake: *** [XDC_Lesson2.out] Error 1
gmake: Target 'all' not remade because of errors.
This is what my C code looks like in main.c:
/* XDCtools Header files */
#include <xdc/std.h>
#include <xdc/cfg/global.h>
#include <xdc/runtime/System.h>
#include <xdc/runtime/Error.h>
#include <acme/utils/Bench.h>
.
.
.
As I said this file compiles cleanly so I'm stuck at why the linker is complaining.
Any help is appreciated.
Thanks!