Tool/software: TI C/C++ Compiler
Hi,
I am using CCS Version 8.2.0 and I am getting multiple definition issue in one of the source code implementation.
Below example will not show any error when the symbols are assigned with stub function name(i.e. --symbol_map=’Function2=stubFunction2 ' is done in linker option) :
However, I am getting the below error on the below sample code with the symbols are assigned with stub function name(i.e. --symbol_map=’Function2=stubFunction2 ').
error #10268-D: symbol "Function2" is mapped to symbol "stubFunction2"; mapped symbol cannot have definition and reference in the same file
Same samples are working in GNU compiler suite by enabling ‘allow-multiple-definition’ option.
Could you please help me how to resolve this issue or Is there any other option to fix this issue?
Basically, I want to stub the function Function2 in test script(File2.c) and Function2 will be present in source file(File1.c) which is tested. I want to enable the priority of the function linkage with test script file(File2.c).