Error "Multiple definition of '...'"

Comments

5 comments

  • Avatar
    Henry

    Perhaps I should mention that at the same time I get the error message "error: .data is too large to fit in FLASH memory segment". This message comes from the linker script.

    As mentioned previously, with vs. 2.0.11 no such message came up.

    Henry

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Did you try setting the "No COMMON" property to be "No" - there are some words on this in the release notes.

    Regards

    Michael

    0
    Comment actions Permalink
  • Avatar
    Henry

    Hello Michael,

    I have set the "NO COMMON" property to NO and the Multiple Definitions error is gone.

     

    What still remains are the following error messages from the linker script file:

    ".data is too large to fit in FLASH memory segment"

    ".rodata is too large to fit in FLASH memory segment"

    ".fast is too large to fit in FLASH memory segment"

    I normally would think that the linker script is the reason for that, but it was ok with Crossworks vs. 2.0.11

    Would you have a suggestion for that issue?

    Regards,

    Henry

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Hi Henry,

    Did you turn off "Enable Unused Symbol Removal"? If so then all the C library will be linked in to the application.

    Regards

    Michael

    0
    Comment actions Permalink
  • Avatar
    Henry

     

    Hello Michael,

    that seems to be a new behaviour. With a previous version it did not matter if it is YES or NO.

    After having now set "ENABLE UNUSED SYMBOL REMOVAL" to YES there are no more error messages.

    Thank you for your immediate help.

    Regards,

    Henry

    0
    Comment actions Permalink

Please sign in to leave a comment.