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.

Redefining symbols while linking

Okay, this may not be c6678 specific (although this is my target)...

If I link with "--priority" I get errors like:

 

error: symbol "list_remove" redefined: first defined in

   "C:\ti\pdk_C6678_1_0_0_14\packages\ti\drv\cppi\lib\ti.drv.cppi.ae66<listlib.

   oe66>"; redefined in

   "C:\ti\ndk_2_20_04_26\packages\ti\ndk\lib\C66\stack.lib<listlib.oe66>"

 

If I instead use the linker flag "--reread_libs" then I  don't get any linker errors.  I am confused since spru186v.pdf (section 7.4.13.3) says that --priority should allow one library to override another.  What am I missing?  When I use "--reread_libs" it choose the last linked version.  Can I depend on this?

 

TMS320C6x Linker                        v7.2.1

Build Number 1LB7Q-KDADEMDK-RTARQ-TAV-ZAZG_X_S_R