Tool/software: TI C/C++ Compiler
I am currently trying to write a custom definition for malloc and from what I read, I should not have to do anything special for this compiler. I was able to redefine it in a different project that used this same compiler as well but for this project, it gives me the following error:
error: symbol "_sys_memory" redefined: first defined in "debug\src\memory.obj";
redefined in
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.6\lib/rtsv7R4_A_be_v3D16_eabi.lib
<memory.obj>"
error: symbol "malloc" redefined: first defined in "debug\src\memory.obj";
redefined in
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.6\lib/rtsv7R4_A_be_v3D16_eabi.lib
<memory.obj>"
>> Compilation failure
>> Compilation failure
scons: building terminated because of errors.
error: errors encountered during linking; "debug\my_out.out" not built
error: symbol "_sys_memory" redefined: first defined in "debug\src\memory.obj";
redefined in
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.6\lib/rtsv7R4_A_be_v3D16_eabi.lib
<memory.obj>"
error: symbol "malloc" redefined: first defined in "debug\src\memory.obj";
redefined in
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.6\lib/rtsv7R4_A_be_v3D16_eabi.lib
<memory.obj>"
error: errors encountered during linking; "debug\my_out.out" not built
It seems to see my definition and the library definition and doesn't choose mine. I tried the '-x' and '-priority' flags but neither of does changed anything. I even changed the ordering of the includes, link, and source files to match my other project but that did not fix the issue.