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.

Linker Error 10056: How to allow multiple defined symbols

Hi everyone,

is there any linker option that allows for multiple defines symbols ... linking any symbol. Suppressing the error using --diag_supress

Background: We have a thirdparty lib that might or might not bring one specific symbol (which we implement ourselves in case its missing)... and we have no control over it. However, we don't want to adjust our linker settings everytime we get a new lib-version.

Thanks,
Thomas

  • You might want to post the compiler that you are using.

    I doubt if the compiler allows suppression of multiple defined symbols.

    You could create multiple build configurations using CCSv6. One build configuration would exclude the file that has the symbol defined and the other configuration would include the file that defines the symbol.

    Stephen
  • When you link, use the option --priority and be sure to list your library last.  If some earlier library supplies an implementation of that specific symbol, that is the one the linker uses.  If no earlier library supplies an implementation of that specific symbol, the linker uses the one from your library.  

    Thanks and regards,

    -George

  • If you are using EABI mode, you may be able to use a "weak" definition of the function.