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

armlink Error: L6218E: Undefined symbol...

Parents
  • Note: This was originally posted on 6th July 2009 at http://forums.arm.com

    > In a C file if some function not used why RVCT generate symbol for that.

    If the function is static, then there won't be. Non-static functions are assumed to be exported so they are visible to other objects.

    You should ideally make non-exported functions in a translation unit static - they normally can be optimized more =)

    > I think there should be some compiler or linker switch to compress this kind of error or to instruct RVCT not to generate symbol for that.

    Or you could just fix the C code =)
Reply
  • Note: This was originally posted on 6th July 2009 at http://forums.arm.com

    > In a C file if some function not used why RVCT generate symbol for that.

    If the function is static, then there won't be. Non-static functions are assumed to be exported so they are visible to other objects.

    You should ideally make non-exported functions in a translation unit static - they normally can be optimized more =)

    > I think there should be some compiler or linker switch to compress this kind of error or to instruct RVCT not to generate symbol for that.

    Or you could just fix the C code =)
Children
No data