The symbol X shows up in the link map, but the linker still generates unresolved symbol errors for X in main. Any ideas?
File Main.c: extern xdata X[]; static char xdata* p = X; void main( void ) { }
File Sub.c: char xdata X[] _at_ 0x0012; static char xdata* p = X;
"You still need a dimension when creating the actual array" Now you mention it, I seem to remember that this came up a while ago; or it might've been someone declaring an array with dimension zero:
char xdata X[0] _at_ 0x0012;