I have the following code:
volatile BYTE xdata RxQueue[RX_MAX_QUEUE] _at_ MEM_RXQUEUE;
both RX_MAX_QUEUE and MEM_RXQUEUE is defined as constants.
but I get an error:
*** ERROR C129 IN LINE 26 OF USB_BL_QUEUEMGMT.C: missing ';' before '+'
Yes, that is a clasic "problem" with #defines.
You should see this explained in any 'C' textbook, along with the recommendation to always have parentheses around any expression in a #define.
And beware of side effects...