#define BANK_0 0x0000
#define IOPORTC ((unsigned volatile *)(BANK_0 + PORTC))
#define IOTRISC ((unsigned volatile *)(BANK_0 + TRISC))
.. later on in a function definition ...
*IOTRISC &= ~SEGMENT_MASK; // By writing zero's to the bits that correspond to segments, we set them all to outputs
This generates a non descriptive error (general error).
The code is included as an attachment.
Thanks for the help...