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 L6: XDATA SPACE MEMORY OVERLAP

If I wish to declare an absolute variable using _at_, and I wish to declare it in a header file so that it is available to more than one module, I keep getting the SPACE OVERLAP message. How can I solve this?

Parents
  • and in all other modules:

    extern xdata unsigned char IOPORT;


    Or rather, put that line into the header file, to be #included by the other modules. That's what I was trying to tell you to do when I wrote "change the header to a declaration" --- I had assumed it goes without telling that the relevant other modules would all be #including that header file.

Reply
  • and in all other modules:

    extern xdata unsigned char IOPORT;


    Or rather, put that line into the header file, to be #included by the other modules. That's what I was trying to tell you to do when I wrote "change the header to a declaration" --- I had assumed it goes without telling that the relevant other modules would all be #including that header file.

Children