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

WARNING L1

I have problem:
A warning L1 with unresolved external symbol, with file SERINIT.h, Why??

Parents
  • Sorry: must read posts more carefully!

    The warning L1, "UNRESOLVED EXTERNAL SYMBOL," means that you have declared an 'extern' without providing a corresponding public definition.
    In itself this is not a problem - it just means that you have an unnecessary 'extern' for a symbol which you don't use.

    The problem comes when you also get warning L2, "REFERENCE MADE TO UNRESOLVED EXTERNAL" - which means that you've actually tried to use the unknown symbol.
    It still could be OK; eg, if you're doing a partial link, or making a Library.

    See p335 of "Macro Assembler and Utilities for 8051 and Variants User's Guide 07.2000"

Reply
  • Sorry: must read posts more carefully!

    The warning L1, "UNRESOLVED EXTERNAL SYMBOL," means that you have declared an 'extern' without providing a corresponding public definition.
    In itself this is not a problem - it just means that you have an unnecessary 'extern' for a symbol which you don't use.

    The problem comes when you also get warning L2, "REFERENCE MADE TO UNRESOLVED EXTERNAL" - which means that you've actually tried to use the unknown symbol.
    It still could be OK; eg, if you're doing a partial link, or making a Library.

    See p335 of "Macro Assembler and Utilities for 8051 and Variants User's Guide 07.2000"

Children
No data