The ROM library contains the main function. Define a dummy main function in the startup module (refer the following listing).
#pragma NO_ENTRY #pragma NO_EXIT void main(void) { asm NOP; }