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

Error 225: ATTEMPT TO ADD DUPLICATE PUBLIC SYMBOL

Hi,
I got the above error when building a library. Though the library file was generated, because of this error, I don't think my library is working properly. Does anyone know what the problem is?

Thank you in advance for your help.

Parents
  • "It was declared in a header file. Then later in a C file"

    Declarations and definitions are different!
    Confuse them, and this is exactly the problem you will get!

    See this thread:
    http://www.keil.com/forum/docs/thread3524.asp

    "I now removed the header file and added this line in my C file and it seems to be working properly, i.e. the value in SSelect in this C file looks correct in the trace:
    #define SSelect XBYTE[0xFE00]"


    Yes, as suspected earlier, you have not fixed the problem (the error in your header file) you have just swept it under the carpet by using this "hack" to access the memory location directly

Reply
  • "It was declared in a header file. Then later in a C file"

    Declarations and definitions are different!
    Confuse them, and this is exactly the problem you will get!

    See this thread:
    http://www.keil.com/forum/docs/thread3524.asp

    "I now removed the header file and added this line in my C file and it seems to be working properly, i.e. the value in SSelect in this C file looks correct in the trace:
    #define SSelect XBYTE[0xFE00]"


    Yes, as suspected earlier, you have not fixed the problem (the error in your header file) you have just swept it under the carpet by using this "hack" to access the memory location directly

Children
No data