Other Parts Discussed in Thread: CCSTUDIO
Hi,
I am compiling my code with -g (symdebug:dwarf) for ELF format at command line. It is giving linking errors as below
undefined
first referenced
symbol
in file
---------
----------------
__TI_DW.debug_info.$base_types.c93cf708e606cc618cf84dfdfd164667 /Obj/alg_create.oc
__TI_DW.debug_info.C:/CCStudio_v3.3/framework_components_2_10_01/fctools/packages/ti/xdais/ialg.h.bc8e9c2b216de7cf9de15b0888fbba99 /Obj/alg_create.oc
__TI_DW.debug_info.C:/CCStudio_v3.3/framework_components_2_10_01/fctools/packages/ti/xdais/xdas.h.d8fb03b4524c15f74d95195955b0485b /Obj/alg_malloc.oc
__TI_DW.debug_info.D:/CCSV4/xdctools_3_20_03_63/packages/ti/targets/std.h.ccc034ea41541a395f0b403e568b709b /Obj/alg_create.oc
error: unresolved symbols remain
error: errors encountered during linking;
I observe from generated assembly file that it is also compiled with symdebug:dwarf_version=3. I have changed this option to symdebug:dwarf_version=2, and it compiled without any errors.
Interestingly, the same code with same build options, it is successfully compiled in CCSv4. And also the COFF build is compiling proper both in CCS and command line.
Does anyone have any idea why the ELF build is failing? Why there is a difference between CCS and command line?
Thanks,
-Venkat