Hello, I'm using the C51 compiler for a C8051F043 target. I'm allocating a variable array with the statement: unsigned char xdata gbuf[2048]; When I compile, I get an Error C231, redefinition of gbuf. The problem is, it's not defined elsewhere in code. To make sure I commented out this statement, and sure enough, I get a linker error because it can't find gbuf. Has someone got an idea of what my problem may be? Thanks, Brian Warren
OK, if the only difference were the 'extern' keyword - I agree. But, like I said in my original reply, if the header has a different declaration - that should cause the described symptoms.