This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to enable -Wl,--gc-sections or equivalent?

I've build with a library but it shows below error message.

Error: L6218E : Undefined symbol

I ask for the provider of the library and they advise me to enable  -Wl,--gc-sections or equivalent in the compiler.

How can I set those setting in Keil?

Please help for my question and thanks for all replies.

Parents
  • Keil uses the ARM compiler - not GCC.

    There is documentation on how to use GCC with Keil, but I can't really see any point in doing that - why not just use one of the "normal" IDEs intended to work with GCC?

Reply
  • Keil uses the ARM compiler - not GCC.

    There is documentation on how to use GCC with Keil, but I can't really see any point in doing that - why not just use one of the "normal" IDEs intended to work with GCC?

Children